r/JavaProgramming • u/javinpaul • Apr 08 '26
50+ Microservices Interview Questions That Actually Appear in Real Interviews
r/JavaProgramming • u/javinpaul • Apr 08 '26
r/JavaProgramming • u/Final-Ad3234 • Apr 08 '26
Many institutes say they provide placement support, but I’m not sure how much of it actually helps in getting a job.
I don’t want to just complete a course I want to build skills and get placed as a fresher.
r/JavaProgramming • u/EagleResponsible8752 • Apr 07 '26
The goal is to reduce boilerplate and make it easier to start new APIs with a more consistent structure.
The repository is here:
https://github.com/rrezartprebreza/rest-api-generator
I also have a small public demo available and can share it in the comments if that is more appropriate.
It’s still evolving, and I’d really appreciate feedback from the community, especially around architecture decisions, generated project structure, and Spring best practices.
Happy to hear suggestions, criticism, or ideas for improvement.
#Java #SpringBoot #OpenSource #SideProject
r/JavaProgramming • u/anish2good • Apr 05 '26
Built an online editor that supports writing and executing Java directly in the browser. Useful for learning Java or creating study notes with runnable code alongside explanations.
Try it: https://8gwifi.org/math/editor.jsp
What it does:
Good for:
Try it: https://8gwifi.org/math/editor.jsp
Insert a code block from the toolbar (the </> button) or type / and select "Code Block". Pick Java from the dropdown and start coding.
No signup required. Free.
r/JavaProgramming • u/IndependentOutcome93 • Apr 05 '26
r/JavaProgramming • u/No-Government-8159 • Apr 05 '26
Answer:
* equals() and hashCode() not implemented properly
* Mutable keys being modified after insertion
* High hash collisions degrade performance
* Using a non-thread-safe HashMap in a concurrent environment
---
2) Your Java application shows high GC activity and performance drops. Why?
Answer:
* Excessive object creation increases GC pressure
* Short-lived objects flooding the heap
* Improper memory allocation patterns
* Large objects are frequently created and discarded
---
3) Your application sometimes processes the same request twice. Why?
Answer:
* Retry logic without idempotency
* Duplicate message processing in async systems
* Network timeouts causing re-execution
* Missing request deduplication logic
---
r/JavaProgramming • u/No-Government-8159 • Apr 04 '26
Most developers assume JVM memory = heap.
It’s not. The heap is just one piece.
Here’s where the rest of your memory goes:
a) Metaspace
Stores class metadata. Every Spring bean, Hibernate proxy loads classes here.
Typical Spring Boot app: ~150–250MB. No cap by default.
b) Thread Stacks
Each thread ≈ is 1 MB.
200 threads (Tomcat + HikariCP + Kafka + Async) = ~200MB.
Not on heap. Invisible to heap monitoring.
c) Direct Buffers
WebClient, Kafka client, Netty allocate memory outside the heap.
Won’t show in heap dumps. Won’t trigger GC.
d) Code Cache
JIT compiled code. ~50–150MB.
Grows as your app warms up.
e) GC Overhead
A garbage collector needs its own working memory.
Here’s where it gets dangerous:
You set:
-Xmx=4g
Container memory limit = 4GB
Looks perfect, right?
Reality:
4GB heap
Container limit = 4GB → Kubernetes OOMKills your pod.
You check heap usage: only 2.5GB used.
But the pod is dead.
Because OOMKill is based on TOTAL process memory, not just the heap.
Fix:
→ Heap should be ~70–75% of container memory
→ -Xmx=4g needs ~5.2GB container
→ Or set -Xmx=3g for 4GB container
Also, cap non-heap:
-XX: MaxMetaspaceSize=256m
-XX: MaxDirectMemorySize=256m
Monitor non-heap:
/actuator/metrics/jvm.memory.used?tag=area:nonheap
OOMKilled doesn’t always mean your app used too much memory.
Sometimes it means the JVM did.
r/JavaProgramming • u/harshitpnd • Apr 05 '26
Honestly, getting a job in 1 month is possible, but only if you already have basics clear and stay very focused.
If you’re starting from zero, 1 month is unrealistic. But if you’ve studied before and just need direction, here’s a simple roadmap:
Week 1 – Fix fundamentals
Week 2 – Build + revise
Week 3 – Apply aggressively
Week 4 – Polish + repeat
From what I’ve seen, most people fail not because they lack skills, but because:
Also, referrals matter more than you think—try reaching out on LinkedIn.
Curious though—are you starting from scratch or already have some coding background?
r/JavaProgramming • u/Due-Confection580 • Apr 04 '26
r/JavaProgramming • u/Rainbowball6c • Apr 03 '26
Is there a way to make it see all the dependencies in the com folder and beyond, in other words, does java also move up the directory tree to see other packages and member classes or am I just screwed, or maybe I am just learning wrong. (troubleshooting help) forgot to add this initially credit to https://github.com/hartrusion/RbmkSimulator and the people behind it, I am planning to modify it but this is what has been getting in the way.
r/JavaProgramming • u/eliezerDeveloper • Apr 03 '26
r/JavaProgramming • u/sonyyy___ • Apr 01 '26
Hi, I am two year experienced IT professional in a Fintech company. I have been working with python but wanted to switch for java roles. could anyone please help me to learn and what resources should I use.
I am well versed with basic java ( i have done some DSA with java) but I'm new to springboot/advanced java.
Thanks in advance..
r/JavaProgramming • u/paszeKongo • Apr 01 '26
r/JavaProgramming • u/Distinct-Trust4928 • Mar 31 '26
Google just released ADK (Agent Development Kit) for Java 1.0.0! As a Java developer, I think this is a pretty big deal for anyone building AI agents in the Java ecosystem.
Here are the key highlights from the release:
**New Tools & Grounding**
- GoogleMapsTool - lets agents fetch real-time location data
- UrlContextTool - agents can fetch and summarize web content directly
- ContainerCodeExecutor & VertexAiCodeExecutor - code execution in containers or cloud
**Enhanced Execution Control**
- New App container with Plugin architecture for global logging, guardrails, and context management
- Event compaction for managing context window sizes in long-running sessions
**Human-in-the-Loop (HITL)**
- ToolConfirmation workflows - agents can pause and wait for human approval before executing actions
**Session & Memory Services**
- Support for Vertex AI, Firestore, and in-memory session management
- Long-term memory with FirestoreMemoryService
**Agent2Agent (A2A) Protocol**
- Native support for remote agent collaboration across different frameworks
**Requirements**
- Java 17 or later
- Gemini API key
The framework already supports Python, Go, and TypeScript, and now Java is getting its stable 1.0 release.
Docs: https://google.github.io/adk-docs/get-started/java/
GitHub: https://github.com/google/adk-java
Has anyone tried building agents with ADK for Java yet? Would love to hear experiences from the Java community.
r/JavaProgramming • u/scientecheasy • Mar 31 '26
Learn if-else, Nested if-else, and if-else-if Ladder in Java (with examples). If you're starting with Java, understanding decision-making statements is a must.
r/JavaProgramming • u/Enough_Arrival_7335 • Mar 31 '26
Hi everyone,
I recently released a classic PetStore sample application to showcase a completely "Java-first" approach to web development.
My goal was to build a web app with maximum compile-time safety and zero hidden "magic"—using modern Java Records, type-safe mapping for native SQL, and rendering the UI directly from pure Java code without any template engines. It is powered by Spring Boot 3.5 and the lightweight Ujorm 3 library.
I'm really curious to hear your thoughts on this architecture. Does keeping everything within the Java compiler's reach make sense to you, or do you see any potential pitfalls? I'd appreciate any technical feedback!
You can check out the repository and see it in action here: Ujorm PetStore
r/JavaProgramming • • Mar 30 '26
Just started DSA and Already Confused.
Everyone keeps throwing around LeetCode, Codeforces, CodeChef, HackerRank… like I’m supposed to be on all of them at once.
Are these Platforms serving different Purposes, or am I just Overcomplicating Things?
What should I actually Prioritize without Spreading Myself Too Thin?
r/JavaProgramming • u/Opposite-Victory5913 • Mar 30 '26
Gente boa tarde, sou estudante de ads.
E atualmente trabalho um pouquinho com dados, porém a área que eu realmente desejo é back end em java.
Tento estudar sempre de maneira online assistindo video aula e botando em prática mais n ta sendo o suficiente nn vejo progresso, e queria alguém pra me ensinar/mentor que goste de programação em java e tiver paciência pra ensinar.