Interview questions

JAVA interview questions – page 84

2,804 questions. Tap “Show answer” to check yourself.

  1. What do you think of the primary benefit of Encapsulation?

  2. What is composition?

  3. What do you think of NullPointer Exception?

  4. Tell the difference between a Window and a Frame?

  5. Define function overloading?

  6. Tell me the difference between Overloading and Overriding?

  7. Define final class?

  8. Define Wrapper classes?

  9. Differentiate between yielding and sleeping?

  10. Why do you think Vector class is used?

  11. What is garbage collection in Java?

  12. What is ROR

  13. Tell the difference between error and an exception?

  14. When a thread is created and started, what is its initial state?

  15. What do you mean by runtime polymorphism or dynamic method dispatch?

  16. Is it necessary that each try block must be followed by a catch block?

  17. Why do we need wrapper classes?

  18. What do you mean by Locale class?

  19. Tell the difference between an Interface and an Abstract class?

  20. Can a top level class be private or protected?

  21. Tell the difference between static and non-static variables?

  22. How can we add menushortcut to menu item?

  23. What are use cases?

  24. What do you mean by Serialization and deserialization?

  25. Which class should you use to obtain design information about an object?

  26. What do you think the purpose of File class is?

  27. When Arithmetic Exception is thrown?

  28. What is the difference between Swing and AWT components?

  29. Describe the use of sublass in a Java program?

  30. What is the difference between constructors and other methods?

Companies that ask JAVA questions