Java Interview Questions
Java Interview Questions
Diamond problem
Wrapper classes
Finalise method
Final vs finally
String literals
String immutability
String pool
Access modifiers
System.out.println(1+2+3+"hello"+5);
System.out.println(1+2+3+"hello"+5+6);
Thread creation
Thread safety
Sync block
Synchr. Vs asynchronous
Collections(vvvvvvvvvvvvvvvvvvvvvvvvvvvvvip)
Comparator vs Comparable
Why declare constructor private in singleton class? –so not allow anyone to create
new obj
Anonymous classes
HashMaps working
Stateless object
Concurrent HashMap