1,916,301 questions
1
vote
2
answers
27
views
Cannot set initial app window size in javafx
I'm not able to set the initial window size. The app always displays 200x200.
public class tcase extends Application
{
@Override
public void start(Stage primaryStage)
{...
Advice
1
vote
2
replies
63
views
In 2026, is MERN stack still a good choice for getting a software job, or should I switch to Java Spring Boot?
I am currently a 3rd-year Computer Engineering student from a tier-3 college in India. I know basic Java, DSA, and I have started learning web development.
I am confused about career direction because ...
-1
votes
0
answers
33
views
Flyway is not creating the tables when the application starts
I configured my spring application to interact with flyway for a data migration but flyway seems not to be working. My application.properties file is in the resources package
spring.application.name=...
Advice
0
votes
2
replies
54
views
How to measure the memory cost of lambdas in Java 25?
If I run Java 25 JShell with Java Object Layout library (JOL) without any JVM settings and measure the memory cost in bytes of a Predicate<String> I see the following:
$ jshell --class-path ~/....
0
votes
0
answers
65
views
Virtual Threads does not Stop after Application Shutdown
I use:
@Configuration
public class AsyncConfig {
@Bean(name = "virtualExecutor")
public ExecutorService newExecutor() {
return Executors.newThreadPerTaskExecutor(
...
1
vote
2
answers
92
views
how Spring creates an object using the reflection if the class has only one arg constructor
I am new with Spring still learning it and I see a post that when I use @Autowired in a class but this post not specified where the annotation is Spring use reflection to create the bean and then ...
0
votes
1
answer
56
views
Stop Hibernate adding associations to SQL select when using legacy Criteria API?
When using hibernate legacy Criteria API and filtering on a `many-to-one` association while only retrieving the base entity type, the produced SQL still adds all columns of the association to the ...
1
vote
2
answers
81
views
Conditionally create bean in spring XML based on property that isn't known until the app starts
I have a quite old Java spring app with beans defined in XML. I need to conditionally switch off one of those beans (it's a dbcp2 data source to a database server that's being shut down), so what I'd ...
Advice
0
votes
5
replies
133
views
Where exactly are static variables are located in Java
So I was looking up java interview questions and this one got me confused. I checked on Geek for Geeks and it says that they are stored in Metaspace with Class'es meta info and bytecodes while ...
Advice
0
votes
4
replies
79
views
What happens at the base case of this recursive method?
I am code tracing some practice problems for a beginner Java course I am taking. Below is one example from a practice worksheet I was given:
public void printStr(String s){
if (s.length() < 6){
...
-3
votes
0
answers
45
views
Where can I find documentation, benchmarks, and implementation details for the Async HBase Client? [closed]
I am currently exploring the Async HBase Client (official version) and trying to understand its capabilities, performance benefits, and internal architecture. However, I am having trouble finding ...
0
votes
1
answer
85
views
How to deal with Windows DPI scaling for Images?
The App is a Swing GUI app that display a JTable. Data is loaded from a file. The first column is an image rendered on the fly from the data in the file. This works in general. This is an old app ...
-2
votes
0
answers
46
views
Testcontainers not able to connect to Docker in Spring Boot project [closed]
I’m working on a Spring Boot project using Testcontainers, but I’m facing an issue where Testcontainers is unable to connect to Docker.
Error:
Testcontainers is failing to connect to your local Docker ...
0
votes
0
answers
84
views
Why does a thread holding a lock need an acquire fence to observe its own plain write in the lock before it releases the lock? [closed]
I'm implementing flat combining (original paper).
When the combiner applies a node
class Node {
volatile Function<T, R> action; //Used through its VarHandle
volatile Node next;
R ...
4
votes
1
answer
91
views
Spring Boot application failed to start
I am getting this error when I try to start a Spring Boot application.
Parameter 0 of constructor in org.codefinity.com.codefinity.firstrestapibooks.controller.BookController required a bean of type '...