Interview questions

JAVA interview questions – page 83

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

  1. Mention the difference between StringBuffer and StringBuilder class?

  2. In java for pattern matching with regular expressions which package is used?

  3. What is Checked Exceptions?

  4. Can you tell java.util.regex consists of which classes?

  5. Tell me about Abstraction?

  6. What is Runtime Exceptions?

  7. Tell me the things should be kept in mind while creating your own exceptions in Java?

  8. When do you think Abstract methods are used?

  9. Define Polymorphism?

  10. Tell the two subclasses under Exception class?

  11. What is immutable object?

  12. When do you think super keyword is used?

  13. When do you think throws keyword is used?

  14. Define Abstract class?

  15. What is JRE i.e. Java Runtime Environment?

  16. What do you think is the purpose of default constructor?

  17. Tell me if a constructor can be made final?

  18. What do you mean by a WAR file?

  19. What is Packages in Java?

  20. What do you mean by Comparable Interface?

  21. What is Set Interface?

  22. What do you mean by JAR file?

  23. Tell me about TreeSet?

  24. What is Multithreaded program?

  25. What do you mean by an Interface?

  26. Tell me some features of Interface?

  27. What are the two ways in which Thread can be created?

  28. Define an applet?

  29. Why do you think Packages are used?

  30. An applet can be extended to which class?

Companies that ask JAVA questions