Polymorphism in Java

JAVA

Polymorphism in Java Interview Questions

  1. Explain Runtime Polymorphism in java?

  2. Is it possible to achieve Runtime Polymorphism by data members in Java?

  3. Difference between static and dynamic binding?

  4. Explain Abstraction in Object-Oriented programming?

  5. How is Abstraction different from Encapsulation?

  6. What is an abstract class in Java?

  7. Is it allowed to mark a method abstract method without marking the class abstract?

  8. Marking a method abstract as well as final, Is it allowed?

  9. Can we instantiate an abstract class in Java?

  10. Explain interface in Java?

  11. Is it allowed to mark an interface method as static?

  12. Why an Interface cannot be marked as final in Java?

  13. What is a marker interface?

  14. What can we use instead of the Marker interface?

  15. How Annotations are better than Marker Interfaces?

  16. What is the difference between abstract class and interface in Java?

  17. Does Java allow us to use private and protected modifiers for variables in interfaces?

  18. Explain how to cast an object reference to an interface reference?

  19. How can you change the value of a final variable in Java?

  20. Can a class be marked final in Java?

  21. How can we create a final method in Java?

  22. Explain how to prohibit inheritance in Java?

  23. Why Integer class is final in Java?

  24. What is a blank final variable in Java?

  25. How can we initialize a blank final variable?

  26. Is it allowed to declare the main method as final?

 

Check Interview Questions on Java

Wikipedia Java

Leave a Comment

Your email address will not be published.