Zafrul
TechStack
Home
Blog
Interview Q&A
Projects
AI Assistant
Resume Analyzer
Job Match
Contact
Java
General
Interview questions on General.
All Levels
Beginner
Intermediate
Advanced
Search
Showing
10
of
78
questions
1. Why do we use generics with collection objects?
+
2. Why is String immutable in Java?
+
3. Which version of Java are you using in your application? Tell me some common features?
+
4. Can we extend an immutable class?
+
5. What are the possible ways to create DTO/POJO in Java?
+
6. What is Record in Java? Opinion: Lombok, Records, and classic DTOs with setters/getters — which to use?
+
7. Given an interface, how do you call a specific implementing class (like ClassB) in Spring?
+
8. What is variable inference? Can you tell me its benefits and drawbacks?
+
9. What is Sealed classes/Interface in Java and where to use it?
+
10. What is the contract between hashCode(..) and equals(..) method?
+
Previous
Page 6 of 8
Next