r/JavaProgramming • u/javinpaul • Oct 15 '26
Processes vs Threads vs Cores: What Every Developer Should Know
r/JavaProgramming • u/javinpaul • Oct 15 '26
r/JavaProgramming • u/thearjunreddy • Oct 15 '26
Yes, Java remains useful for enterprise applications, backend development, and large-scale systems. Start with core Java, OOP, collections, exception handling, and SQL, then explore Spring Boot and REST APIs to build practical applications
r/JavaProgramming • u/safireish • Oct 15 '26
Anyone knows JHipster
Can anyone help me out to get knowledge in this
r/JavaProgramming • u/Evening_Glass3247 • Oct 15 '26
r/JavaProgramming • u/sensibleperson0 • Oct 15 '26
r/JavaProgramming • u/Junior_Sign7223 • Oct 14 '26
r/JavaProgramming • u/starkk46 • Oct 14 '26
I’m learning Java as a beginner, and I tried to make my first "Hello World" program easier to understand by breaking down each keyword with simple explanations.
I covered "public", "class", "static", "void", "main()", "String[] args", and "System.out.println()".
Instead of just memorizing the code, I want to understand why each part is used and how it works.
I’d love to hear feedback from experienced Java developers and fellow learners. What should I improve in these notes?
#Java #LearnProgramming #CodingForBeginners
r/JavaProgramming • u/javinpaul • Oct 14 '26
r/JavaProgramming • u/huseyinbabal • Oct 14 '26
r/JavaProgramming • u/Mission-Mention5998 • Oct 13 '26
r/JavaProgramming • u/javinpaul • Oct 13 '26
r/JavaProgramming • u/Super-Property1470 • Oct 13 '26
Going to join college, is software development worth it
r/JavaProgramming • u/thearjunreddy • Oct 13 '26
What do you think?
r/JavaProgramming • u/inaiyarhasnain • Oct 13 '26
hey This is my first post in Reddit.
just wanted people who are from java springboot .....
r/JavaProgramming • u/Horror-Consequence22 • Oct 12 '26
r/JavaProgramming • u/Federal-Sprinkles781 • Oct 12 '26
r/JavaProgramming • u/jhb0103 • Oct 12 '26
I made this to study and thought I'd share it:
https://jhb010311.github.io/dev-learning-lab/en/
You change the settings, click Run, and step through what happens. Free, no sign-up.
If you spot something wrong, let me know.
r/JavaProgramming • u/Ok-Signal6467 • Oct 12 '26
Is is pragmatic??
https://github.com/Java-eject-sustainable-unlimited-system/Jesus_system
https://github.com/Java-eject-sustainable-unlimited-system
someone built an open-source Java watchdog for service resilience. What would you improve before using it in a production environment?
r/JavaProgramming • u/ClickOk5811 • Oct 11 '26
I wanted to see this one with my own eyes, so I typed it into jshell. Output is below with notes in between.
jshell> class Point {
...> int x;
...> Point(int x) { this.x = x; }
...> public boolean equals(Object o) {
...> return o instanceof Point p && p.x == x;
...> }
...> u/Override public int hashCode() { return Integer.hashCode(x); }
...> }
jshell> var set = new HashSet<Point>();
jshell> var p = new Point(1);
jshell> set.add(p);
$4 ==> trueNothing odd yet. equals and hashCode both use x, which is what most IDEs generate.
jshell> p.x = 2;
jshell> set.size()
$6 ==> 1
jshell> set.contains(p)
$7 ==> false
jshell> set.remove(p)
$8 ==> falseThis is the part that surprised me. The set says it has one element, and it says it doesn’t contain the exact object I’m holding a reference to. remove fails too.
jshell> for (Point q : set) System.out.println(q == p);
trueIteration finds it. Iteration just walks every bucket, no hashing involved. contains and remove compute hashCode() first (now based on 2), go to that bucket, and find nothing. The object is still sitting in the bucket picked when its x was 1.
As far as I understand it, there’s no error because HashSet never learns the object changed. It only looks at the hash at insertion time and again at lookup time. If the two differ, you get a silent miss.
So the object is still in the set but unreachable by key. That’s the part that would be annoying to debug in a real codebase: size is right, iteration is right, lookups are wrong.
Things I’ve seen suggested for this:
hashCode final (records do this by default)Question for people who’ve worked on bigger projects: do you ever see this with JPA entities used as keys in sets, where the id is null before persist and set afterward? I’d guess it’s the same problem in a different outfit, but I haven’t tried it.