Thursday, August 27, 2009

Java Interview Questions

1.What is the difference between a constructor and a method?
2.Difference b/w Passby Value and Pass by Reference
3.What are the causes of exceptions in java?
4.what is threadsafe?Is Vector is threadsafe ?
5.What is an abstract class?
6.Difference between an Interface and an Abstract class?
7.What is 'this' keyword in Java?
8.What is 'final' keyword in Java?
9.Explain 'overload' VS 'override'
10.Explain immutable classes, Name some
11.What is class.ForName?
12.What is MVC architecture, how is MVC2 different from MVC?
13.What is Polymorphism?
14.How to resolve null pointer exception
15.Explain use of GC(Garbage collection) in Java
16.Difference between Vector and ArrayList?