This document contains important questions related to Java programming, specifically focusing on concepts of inheritance, polymorphism, interfaces, and packages. It covers definitions, examples, and explanations of key terms such as super class, sub class, method overriding, and the differences between interfaces and abstract classes. The questions aim to assess understanding of both theoretical and practical aspects of Java programming.
This document contains important questions related to Java programming, specifically focusing on concepts of inheritance, polymorphism, interfaces, and packages. It covers definitions, examples, and explanations of key terms such as super class, sub class, method overriding, and the differences between interfaces and abstract classes. The questions aim to assess understanding of both theoretical and practical aspects of Java programming.
2. What is Super class and sub class? 3. Write a note on “extends” keyword. 4. Explain Inheritance with example. 5. Explain types of Inheritance in java. 6. Explain Single Inheritance with example. 7. Explain Multilevel Inheritance with example. 8. Explain why java class does not support Multiple Inheritance. 9. Explain Hierarchical Inheritance in java with example. 10. What is Method Overriding in java explain with example. 11. What is polymorphism in java. 12. Explain types of Polymorphism. 13. Explain Dynamic binding in java with example. 14. Explain Abstract Class with example. 15. What is Interface in java. 16. Explain “implements” keyword. 17. Explain how to implement Multiple inheritance by using Interface with example. 18. What is Package in java. 19. Explain Types of Packages. 20. List some built-in Packages in java. 21. Write a procedure to create user defined packages. 22. Define user defined package and import the user defined package in different class. 23. Differentiate between Interface and Abstract class.