Java core advance interview Questions



Some advance java core interview questions:

1. When GC collector start collect objects that has no reference?
2. What areas in JVM memory are threadsafe?
3. Why Map not inherited from Collection interface?
4. Why ArrayList use for application which has more search operation over linkedList?
5. Why LinkedList prefered for insert and removal operation?
6. Performance analysis- Vector vs ArrayList vs LinkedList.
7. Define HashSet internal structure.
8. What will effect if data insert in a hashmap with same key?
9. Which part of JVM responsible for duplicate bytecode removal?
10. Native library use in JVM for what?
11. What is java annotation? Build a relation annotation with Marker interface.
12. What is diamond problem in inheritance?
13. What is reponsible for Deadlock?
14. What is abstraction? Why we use abstraction?
15. Which is better HashMap or HashTable?
16. Find out Starvation vs Deadlock.
17. How can we prevent Deadlock?
18. Why Excecution can not remove duplicate bytecode without JIT compiler?
19. When we use Set and when use list?
20. How can we run java program without JDK?
Reactions

Post a Comment

0 Comments