- Differentiate C++ and JAVA w.r.t inheritance. Also mention the use of super and this in Java.
- Define inheritance. List the different types of inheritance in java
- Illustrate with example a super class variable can reference a subclass object.
- Compare and contrast method overloading and overriding
- Define inheritance. Explain multilevel hierarchy with an example program.
- Discuss the terms: a)super b) final c) abstract class
- Can you overload constructor and destructor ? Justify with suitable program.
- Briefly explain the role of interfaces while implementing multiple inheritance in java
- What is the alternative approach to implement multiple inheritances in Java? Explain with example.
- What is meant by instance variable hiding? How to overcome it?
- With an example, give two uses of super.
- Discuss the following a. Inner class b. Overriding and overloading c static variable and methods
- Write a program which contains one method which will throw IllegalAccessException and use proper exception handlers so that exception should be printed.
- Explain the constructor method. How is it different from other member functions.
- What is a Java exception? Explain the exception handling mechanism with an example.
- Define Exception. Demonstrate the working of nested try block with suitable examples.
- Create a try block that is likely to generate three types of exceptions and incorporate necessary catch blocks to handle them.
- Explain the java’s built-in exceptions.
- Give the basic form of an exception handling block.
- What is the importance of the clause finally.
- Illustrate the usage of throw in exception handling with suitable example.
Thursday, August 11, 2022
Object Oriented Concepts - Module 3
Subscribe to:
Post Comments (Atom)
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...
-
Module 1 Define IOT. Explain Evolutionary phases of the internet What is IOT? Explain in detail on Genesis of IOT. What does IOT and digi...
-
List the key features of Python Programming Language. What is the role of a programmer?. List at least two skills required to be a best ...
-
What is a class?. How to define a class in Python?. How to instantiate a class? How the members are accessed? Differentiate class varia...
No comments:
Post a Comment