Thursday, August 11, 2022

Object Oriented Concepts - Module 3


  1. Differentiate C++ and JAVA w.r.t inheritance. Also mention the use of super and this in Java.
  2. Define inheritance. List the different types of inheritance in java
  3. Illustrate with example a super class variable can reference a subclass object.
  4. Compare and contrast method overloading and overriding
  5. Define inheritance. Explain multilevel hierarchy with an example program.
  6. Discuss the terms: a)super b) final c) abstract class
  7. Can you overload constructor and destructor ? Justify with suitable program.
  8. Briefly explain the role of interfaces while implementing multiple inheritance in java
  9. What is the alternative approach to implement multiple inheritances in Java? Explain with example.
  10. What is meant by instance variable hiding? How to overcome it?
  11. With an example, give two uses of super.
  12. Discuss the following a. Inner class  b. Overriding and overloading c static variable and methods
  13. Write a program which contains one method which will throw IllegalAccessException and use proper exception handlers so that exception should be printed.
  14. Explain the constructor method. How is it different from other member functions.
  15. What is a Java exception? Explain the exception handling mechanism with an example.
  16. Define Exception. Demonstrate the working of nested try block with suitable examples.
  17. Create a try block that is likely to generate three types of exceptions and incorporate necessary catch blocks to handle them.
  18. Explain the java’s built-in exceptions.
  19. Give the basic form of an exception handling block.
  20. What is the importance of the clause finally.
  21. Illustrate the usage of throw in exception handling with suitable example.


No comments:

Post a Comment

Database Management systems - Module 2

1 a. Explain the entity integrity and referential integrity constraints.   Why is each considered important. Give examples.    b. Discuss eq...