Frequently asked Java interview questions?
This list consists of important Java interview questions. These questions are repeatedly asked in many java interviews. If you are person likely to take J2EE interview or Java interview it must be very useful to you.
1) What is the difference between the HashMap and HashTable? Which one is better? And when to use?
2) What is the difference between ArrayList and Vector? Which one is better? And when to use?
3) What is the difference between an Interface and an Abstract class?
4) What is the purpose of garbage collection in Java, and when is it used?
5) Describe synchronization with respect to multithreading?
6) What are pass by reference and pass by value? How to do you use in your
program?
7) What is the difference Swing and Awt?
8) What is the difference between a constructor and a method?
9) What is an Iterator? How to you use an Iterator?
10) State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers.
11) What is an abstract class? What is the difference between a abstract class and a interface?
12) What is static in java?
13) What is final? Where and all you can use final?
14) What is syntax of the main method in Java?
15) How to I set a classpath in Windows?
16) Have you installed Java yourself?
Thursday, January 25, 2007
Subscribe to:
Posts (Atom)