All Questions
1,916,601 questions
Advice
0
votes
0
replies
3
views
Why is Spring Boot still used in large-scale systems despite newer backend frameworks?
I am learning backend development using Java and Spring Boot and have built REST APIs using it.
I noticed that newer technologies like Node.js and Go are becoming popular for backend development. ...
-2
votes
0
answers
52
views
JTabbedPane with JTable data from MySQL [closed]
When I select the tab tabIndirizzi, I want the table display all the records from a MySQL table.
The connection script is right because it works in other frames, but it doesn't display records in this ...
0
votes
0
answers
83
views
Getting weird results from java string codepoints on a windows machine [duplicate]
I wrote this method:
public String unicodePrint(String input) {
if (input != null && !input.isEmpty()) {
StringBuilder sbTitle = new StringBuilder();
System.err.println(...
Advice
0
votes
8
replies
140
views
Why are there two ways to write print in java (and possibly more)
public class Main {
public static void main(String[] args) {
System.out.println("the first string");
System.out.print("the second string");
}
}
I get that ...
Advice
1
vote
0
replies
41
views
Create install msi java visual studio code
I have built a java app with visual studio code now I want to create an installable file (.msi) -- step by step. I think it is done with Graval or Maven and creating module file(s) but I do not know ...
Advice
2
votes
12
replies
163
views
I don't understand boolean
public class Main {
public static void main(String[] args) {
boolean isLightOn = false;
if (isLightOn == false) {
System.out.println("The light is on.");
} else {...
13
votes
1
answer
196
views
I covered all subclasses of a sealed class in a switch expression, but the Java compiler still claims the switch is not exhaustive. Why?
Assume the structure:
sealed class Shape permits Circle, Quadrangle {}
sealed class Quadrangle extends Shape permits Diamond, Rectangle { }
final class Rectangle extends Quadrangle {}
final class ...
0
votes
1
answer
60
views
Selecting intermediate nodes in a TreeGrid
With TreeGrid with a single column, clicking an intermediate node will expand the node but will not select it. It seems that only leaves can be selected.
Here is a minimal example:
package myapp;
...
0
votes
1
answer
44
views
How to reliably wait for dynamic elements loaded via JavaScript (AJAX)?
I am writing UI tests using Selenium WebDriver (Java) and frequently encounter an ElementClickInterceptedException. When trying to click a button or link, the element is covered by overlay components ...
-1
votes
0
answers
50
views
Getting a `java.net.BindException` when calling `java.net.DatagramSocket.connect(java.net.SocketAddress)` [closed]
I just saw the following exception in one of our CI tests, and it's very strange to me:
Caused by: java.net.BindException: Address already in use
at java.base/sun.nio.ch.Net.connect0(Native Method)...
Advice
2
votes
3
replies
155
views
Recommendation of material, YouTube channel etc for dentist loving computer science?
I just start to dive in the world of programming. I'm in love with it and would be very nice to have some advice from you guys. I'm a dentist and I do love it, but still I love computer science. So, ...
-2
votes
0
answers
41
views
Spring Cloud Stream Kafka: Batch mode fails to map JSON to Abstract Class DTO (returns byte[] instead of List) [closed]
I am facing an issue with Spring Cloud Stream (Kafka Binder) when using batch-mode: true combined with an Abstract Class as the DTO type.
The problem:
In single-record mode (default), the JSON ...
2
votes
0
answers
86
views
Create multiple EntityManagerFactories in parallel [closed]
I have to create ~150 EntityManagerFactories.
I'm using
hibernate-commons-annotations-5.1.2.Final
hibernate-core-5.6.14.Final
hibernate-envers-5.6.14.Final
hibernate-search-backend-elasticsearch-6.1.8....
Advice
2
votes
4
replies
101
views
How should i continue learning java programming
I need your advice.
I am learning Java programming. I know the Java basics, object oriented programming and also Swing and Awt. These days I understand that I have to learn algorithms and data ...
0
votes
0
answers
111
views
Java Socket does not honor timeout
Tried following code with a wrong serverAddress:
final int CONNECT_TIMEOUT = 5000; // 5000 ms = 5 seconds
final int SO_TIMEOUT = 5000;
try (Socket socket = new Socket()) {
socket.setSoTimeout(...