Thứ Năm, ngày 30 tháng 5 năm 2013

Câu hỏi phỏng vấn java

  1. What is the difference between an Interface and an Abstract class?
  2. What is the purpose of garbage collection in Java, and when is it used? 
  3. Describe synchronization in respect to multithreading.
  4. Explain different way of using thread? 
  5. What are pass by reference and passby value?
  6. What is HashMap and Map?
  7. Difference between HashMap and HashTable?
  8. Difference between Vector and ArrayList?
  9. Difference between Swing and Awt?
  10. What is the difference between a constructor and a method?
  11. What is an Iterator?
  12. 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.
  13. What is an abstract class?
  14. What if the main method is declared as private?
  15. What if the static modifier is removed from the signature of the main method?
  16. What if I write static public void instead of public static void?
  17. What if I do not provide the String array as the argument to the method? 
  18. What is the first argument of the String array in main method?
  19. If I do not provide any arguments on the command line, then the String array of Main method will be empty or null?
  20. How can one prove that the array is not null but empty using one line of code?
  21. What environment variables do I need to set on my machine in order to be able to run Java programs?
  22. Can an application have multiple classes having main method?
  23. Can I have multiple main methods in the same class?
  24. Do I need to import java.lang package any time? Why ?
  25. Can I import same package/class twice? Will the JVM load the package twice at runtime?
  26. What are Checked and UnChecked Exception?
  27. What is Overriding?
  28. What are different types of inner classes?

Không có nhận xét nào:

Đăng nhận xét