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. There are two variables, storing exchange rates of currency. Now, what data type will you use for these variables and which method will you use to equate them?
+
2. How long does Heap memory and Stack Memory stay in Java?
+
3. What is the contract of equals() and hashCode()?
+
4. What is Marker interface in Java? Can we create a custom Marker interface?
+
5. Custom Marker Interface?
+
6. You have an array list of Employees having Emp Id and Manager Id. Retrieve data of all employees reporting to Manager with Emp Id = 200.
+
7. What’s the difference between Comparable and Comparator? When to use each?
+
8. What are Fail-Fast and Fail-Safe iterators?
+
9. In production, you see frequent OutOfMemoryError: Java Heap Space. What real-time tools and Java coding practices would you use to identify and fix memory leaks?
+
10. Why does Fail-Safe not throw exceptions?
+
Previous
Page 3 of 8
Next