Core Java Interview Questions And Answers Important




Top 20 Java Interview Questions and Answers :
----------------------------------------
­-------
1. What is the difference between C++ and Java ?

2. Why Java is Platform Independent ? [i.e Write once and Run anywhere ]

3. Is Java Object Oriented Programming Language ? How ?

4. What is JVM ?

5. What is Java ByteCode ?

6. What is the difference between "Abstract class" and "Interface" ?

7. What is use of "Garbage collector in Java" ? Explain ?

8. What is the benefit of "finalize" method ?

9. What are the difference type of "Collections" available in Java ? When to use what ?

10.What is the difference between "Comparator" and "Comparable" Interface ?

11.Why "Strings" are immutable ? what is the advantage ?

12.Is Java ,"Pass-by-Value" or "Pass-by-Reference" ?

13.Explain "static" keyword ? Difference between instance variables / methods and static variables / methods ?

14.Explain "Exception" in Java ?

15.What is the use of "finally" block in Java ? Explain ?

16.What is "serialization" ? How it is done in Java ?

17.What is "transient" variable ?

18.Explain polymorphism ,encapsulation ,inheritance in Java ?

19.What is the difference between "StringBuffer" and "StringBuilder" ?

20.Explain "Class loading" in Java ?