Interview questions

JAVA interview questions – page 86

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

  1. Tell the restriction imposed on a static method or a static block of code?

  2. What do you mean by an enumeration?

  3. Define an object's lock and which object's have locks?

  4. What do you mean by Downcasting?

  5. What are the order of precedence and association and how are they used?

  6. Can an Interface extend another Interface?

  7. Can a double value be cast to a byte?

  8. Tell the difference between Path and Classpath?

  9. What do you mean by constructor chaining and how is it achieved in Java?

  10. What do you mean by a pointer and does Java support pointers?

  11. What do you mean by platform?

  12. Define a JVM?

  13. Are JVM's platform independent?

  14. Tell the main difference between Java platform and other platforms?

  15. What will be the default values of all the elements of an array defined as an instance variable?

  16. What are the restrictions placed on method overriding?

  17. What is platform independence

  18. Does constructor return any value?

  19. What do you mean by static method?

  20. If I don't provide any arguments on the command line, then the String array of Main method will be empty or null?

  21. What do you think the default value of the local variables?

  22. What will be the initial value of an object reference which is defined as an instance variable?

  23. What will happen if the static modifier is removed from the signature of the main method?

  24. Why main method is static?

  25. What if I write static public void instead of public static void?

  26. Tell the difference between object oriented programming language and object based programming language?

  27. Can you have virtual functions in Java?

  28. What do you mean by final variable?

  29. Is there any possibility that we can override the overloaded method?

  30. Tell; difference between aggregation and composition?

Companies that ask JAVA questions