Sei sulla pagina 1di 1

Java Interview Questions

1. difference between abstract class and interface


2.Diff between arraylist and linkedlist? in which case would you prefer one over other
3. Collections hierarchy.Mug up the diagram.
4.Which is class from which all classes inherit? what are the methods defined in it?
5.Multithreading-what does wait,notify and notifyall do ?Advantages of multithreading
6.Diff between final,finally and finalize(Most Imp)?
7.Binary search code.
8.Usually swing or network/file io questions are not asked.
9.Advantages of OOP?
10.Write multithreaded code which is sure to deadlock?
11.How to use synchronized keyword?
12. What is serialization?
13. How java implements multiple inheritance?
14.nth node from the lst in LL
15.Difference between Hashtable/Hashmap/Treemap, hashset/treeset
16.Comparator/Comparable, Why do we need to override equals(),hashcode() methods?

Potrebbero piacerti anche