Interview questions

JAVA interview questions – page 87

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

  1. Why Java does not support pointers?

  2. Define object cloning?

  3. Can we override static method?

  4. Why we cannot override static method?

  5. What do you mean by Exception Handling?

  6. Define finally block?

  7. Can I import same package/class twice? Will the JVM load the package twice at runtime?

  8. Tell the super class for every class?

  9. Why multiple inheritance is not supported in java?

  10. Define marker interface?

  11. Explain static import ?

  12. Define the base class for Error and Exception?

  13. Tell the difference between Checked Exception and Unchecked Exception?

  14. Can we execute a program without main() method?

  15. Can finally block be used without catch?

  16. What is difference between object oriented programming language and object based programming language?

  17. Can an exception be rethrown?

  18. What do you mean by nested class?

  19. Can we access the non-final local variable, inside the local inner class?

  20. How many ways we can create the string object?

  21. Can a class have an interface?

  22. Can you achieve Runtime Polymorphism by data members?

  23. Can you use abstract and final both with a method?

  24. Tell the difference between abstraction and encapsulation?

  25. Can an Interface have a class?

  26. Why java uses the concept of string literal?

  27. What do you mean by blank final variable?

  28. Is it possible to declare an interface method static?

  29. Define final method?

  30. Can we intialize blank final variable?

Companies that ask JAVA questions