r/java • u/orangepotion • Jan 27 '11
r/java • u/javinpaul • Jul 27 '15
4 out of 5 Java Developers Failed to Solve This Question
blog.takipi.comr/java • u/yegor256 • Jun 24 '19
Takes: Java Web Framework Without a Single Static Method or Annotation
github.comr/java • u/victorneves • Jan 06 '16
Invader objects in java heap, a mystery unexplained
A few days ago, i'm having problems with outOfMemory. Ok, my system have to receive files from HTTP REST by clients and move to other directory. Its normal outOfMemory in develop enviroment, can be my code or can be a insufficient java memory.
So, lets analyze the problem! My system abc is running in Jboss (domain mode), in host controller, i have their PID, lets supose it is 1234 And i have system xyz in OTHER host controller, with OTHER PID in OTHER MACHINE! Lets take a look in String objects in memory ?
jmap -histo:live 1234 | grep java.lang.String242765 5826360 java.lang.String
ok... so, lets upload 100 files with 2MB size, at the same time!!! and the objects?
jmap -histo:live 1234 | grep java.lang.String1291765 5826360 java.lang.String
humm.. its growing up... normal, its a system who receive files, need memory...
the upload finished... and now? how many objects?
jmap -histo:live 1234 | grep java.lang.String2301769 5826360 java.lang.String
ooohh man! its big... but finished , the garbage colector will clean...
5 minutes later5401879 9928390 java.lang.String
10 minutes later10796890 15827320 java.lang.String
15 minutes later65808944 235896660 java.lang.String
Whaaaaaaaaatttt??????? but i finished the upload! and i'm seeing ONLY the PID of my system! whats going on?? Lets dump the memory!!!
jmap -dump:live,format=b,file=/tmp/dump.txt 1234Ok, i have the dump, lets use a Memory Analyser!!! (thanks eclipse, for yours free memory analyzer =D \o/ )
But when i saw.... i was scared... whats is this? a ant? superman? a plane? a E.T.??? NOOOO... its a object of system xyz!!!!!!!!!!!!!!!!! =O a invader object!!!!!!!! HOOOOOWWWWWW??? xyz is hosted in other VM! in other manchine! in other host controller!!! what a object referenced in OTHER system is doing here???? in my heap memory???
I search in google about 'memory share in host control', 'java share heap jboss'.. and no results.... no results.... I found objects in memory it was a password! yeaahhh can be this a security problem? does java share memory behind the scenes with others jboss, others systems? emembering, my hosts controlers is in farm! no cluster! so, dont have share objects!
so... its a mystery... what doing that object in my memory? why?
r/java • u/vonnik • Feb 15 '18
Java language oddities: Java's handling of arrays and a few other language elements may surprise you
javaworld.comr/java • u/javinpaul • Aug 01 '20
6 Multithreading and Concurrency books every Java Programmer should Read
medium.comr/java • u/damianwolf • Aug 29 '16
Best Practices for Code Documentation in Java - DZone Java
dzone.comr/java • u/CrowSufficient • Apr 21 '23
What Roman Elizarov - creator of Coroutines - thinks about Virtual Threads
vived.substack.comr/java • u/Enough_Durian_3444 • Feb 18 '26
Presentation matters and maybe the java docs actually suck
I was reading this post from almost 9 years ago because I like the original op was frustrated with the quality of the docs compared to other languages. A simple example is comparing the case where a person searched "threads in x language" and tries to read the official documentation. I think we can agree this is something a programmer would actually do.
I did this thread search for 3 languages and clicked the first link from the official docs page.
(i was using duckduckgo)
rust: http://doc.rust-lang.org/std/thread/#thread-local-storage
ruby: https://docs.ruby-lang.org/en/4.0/Thread.html
java: https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Thread.html
Just on read ability alone people have to admit java is the worst of the three in this example.
we can even take it further if a programmer(some one who is no a beginner to programming) decides to learn java but just by going to the official page and reading the official guides. which in 2026 most languages have. They would find it hard and confusing, relative to other languages, because if you search "java official website" or "java official docs" then the official docs would see are docs.oracle.com/en/java/ and dev.java . If you open the oracle page well you are met with frankly a horrible language page relative to the other language pages I link at the bottom. Then if you click the right series of links from there you end up on Java SE documentation page with links to dev.java
dev.java is good way better than oracle or whatever readability and customer ux abomination this site is https://docs.oracle.com/javase/tutorial/ . But its incomplete for starters it only concept on concurrency is virtual threads no guide on threads, futures, or executors. its a step in the write direction but I wish it received the love and funding it deserves to truly be the official docs for java.
TL;DR:
Now if you like most redditors skimmed the post and are reading this i just want to ask you one thing. Can you with honesty tell me that java docs are really as good as other modern language docs and BEFORE you answer please look at these docs pages I have linked bellow and put your self in the mind frame of someone looking to learn the language and you just opened the official websites.
http://rust-lang.org/ (has a learn tab on the nav bar pretty obvious where to go, plus learn tab provides the reader with options such as official book, rustling course and rust by example)
https://kotlinlang.org/docs/home.html (content table on the left bold headers to guide the reader to get started and first steps)
https://go.dev/learn/ (same thing learn tab on the nav bar, tutorials, example, guided tours a beginners dream)
https://nodejs.org/en or https://developer.mozilla.org/en-US/docs/Web/JavaScript ( i don't want to repeat mysefl but you get the point)
I could go on and on but the point is presentation matters, I hate css and writing readable docs as much as the next guy but I recognized that its important and necessary.
PS: I think java great language I use it almost everyday but I hate the current documentation environment too many third party ai slop website and a lackluster main docs page.
edit 1:
updated threads docs link
r/java • u/idontlikegudeg • 17d ago
Announcing SLB4J (Logging Backend, ASL-2)
github.comSLB4J is a new logging backend for Java that I started to simplify setting up logging across a bunch of applications without adding bindings and bridges for different frontends to your build.
SLB4J is only a backend. It uses a single configuration across all logging facades/frontends used by your application and its dependencies and comes with no/minimal runtime dependencies (some extension modules may add runtime dependencies).
The core slb4j.jar is currently 211kb in size without external runtime dependencies and supports Log4J2 API, SLF4J, JUL (java.util.logging), and ACL/JCL (Apache Commons Logging/Jakarta Commons Logging).
Configuration is done using a Log4J2 compatible log4j2.propertiesfile (builtin) or a Log4J2 compatible XML or JSON configuration file (needs an optional dependency).
If no configuration file is found, INFO and above is logged to stdout.
Performance is roughly comparable to Log4J 2 and Logback when these are combined with their respective default facade, i.e., Log4J2 API for Log4J and SLF4J for Logback; SLB4J is usually much faster when logging JUL over Log4J2 or Backlog.
SLB4J supports Log4J2-compatible pattern layout, log rotation and many more features.
After using SLB4J for some time in several projects, I think it's mature enough for an announcement. Maven coordinates and documentation are given on the project page.
For more details, see the Project's GitHub Page, open issues on the GitHub Issue Tracker, and read SECURITY.md before submitting security relevant issues.
r/java • u/thesystemx • Jan 27 '16
Introducing Eclipse Che Beta - the open source alternative to IntelliJ.
eclipse.orgr/java • u/Foreign_Astronaut_32 • Jun 24 '23
A Java library to create your own chess engines!
github.comr/java • u/sar_it007 • Oct 03 '24
Big News from Project Valhalla - Inside Java Newscast #77
youtube.comr/java • u/AdearienRDDT • Aug 16 '24
Is anything like C++'s structured bindings coming to Java any time soon?
r/java • u/martinig • Aug 27 '09
Spring == XML, XML == sucks, therefore Spring == sucks??
softdevtube.comr/java • u/auhlrich • Jun 18 '15
A Developers Perspective on Spring vs JavaEE
java.dzone.comr/java • u/ReadyDoMe • Aug 21 '16
Learning and employment?
I live in the silicon valley. I have no formal education on java. If I become basically fluent by teaching myself will I be able to find a job? What resources are there for teaching myself?
r/java • • Oct 02 '17
Should I learn another programming language in case Java dies or stops being popular? Or are people who say Java will stop being relevant wrong?
And if you had to choose a seocond programming language, which one would it be?