We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Important questions
1. Explain the concept of inheritance in Java. What is the purpose of the
extends keyword? 2. Discuss the different types of inheritance supported in Java, including single, multiple (through interfaces), and hierarchical inheritance. 3. What is method overriding in Java 4. Define what an interface is in Java. How does it differ from an abstract class? 5. 4. Describe the role of the super keyword in Java. Provide examples of how it can be used to access superclass methods and constructors 6. Explain the difference between checked and unchecked exceptions in Java. Provide examples of each. 7. Describe the purpose of the try-catch block in Java. How does it help in managing exceptions? 8. How can you create a user-defined exception in Java? What steps are involved? 9. Explain the difference between throw and throws in Java. When would you use each keyword? 10.Explain the difference between throw and throws in Java. When would you use each keyword? 11.Explain the role of the File class in Java. What operations can you perform using this class? 12.Differentiate between byte stream classes and character stream classes in Java 13.What are random access files in Java, and how do they differ from regular file handling?