The document is a question bank for Object-Oriented Programming using Java, covering topics such as garbage collection, inheritance, method overriding, and exception handling. It includes questions on abstract classes, thread management, and user-defined exceptions, among others. The questions aim to assess understanding and practical application of Java concepts.
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
0 ratings0% found this document useful (0 votes)
30 views1 page
M 2 and 3
The document is a question bank for Object-Oriented Programming using Java, covering topics such as garbage collection, inheritance, method overriding, and exception handling. It includes questions on abstract classes, thread management, and user-defined exceptions, among others. The questions aim to assess understanding and practical application of Java concepts.
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
21CS32 Object-Oriented Programming using Java
Module-2 and 3 Question Bank
1. What is the Garbage collection in Java? Explain how garbage collection is implemented in java. 2. What are the various types of Inheritance supported by Java? List and Describe. 3. Explain how Method Overriding is implemented in java with a suitable example. 4. What is the use of the super keyword in java? List its usage at various levels with examples. 5. Explain the various levels of using the final keyword with examples. 6. What is the importance of the Abstract class in Java? Explain the steps for implementing an abstract class with examples. 7. Differentiate between Errors and Exceptions in Java. 8. List the various ways of handling Exceptions in Java. 9. List and Explain 5 types of Exception classes in Java. 10. Write a Program in Java to create a user-defined exception class that can handle an ArithmeticException for a given input. 11. Differentiate between throws and throw with an example. 12. What is a package? List the steps for the creation of a user-defined package in java. 13. Explain how multiple inheritance is implemented in Java? 14. Describe Dynamic Method Dispatch/ Runtime Polymorphism with an example. 15. What is a thread? Explain the life cycle of a thread in java. 16. Give various methods for creating threads in java with suitable examples. 17. Explain with an example how priorities are set to a thread. 18. Explain the importance of join() and isAlive() with example. 19. What is thread Synchronization? Explain with an example. 20. What is a Deadlock? Explain the means of inter process communication in threads.