Module 3
1. Explain the concept of inheritance in Java. Describe the following types with
suitable examples:
Single inheritance
Multiple inheritance
Multilevel inheritance
2. Discuss the use of the super keyword in [Link] its use in constructors and
methods with examples.
3. Write a Java program to demonstrate method overriding and the use of the
super keyword.
4. Explain Dynamic Method Dispatch in Java with a suitable program.
5. Explain abstract classes in Java and their role in inheritance with an example.
6. Explain the use of the final keyword with inheritance.
final class
final method
final variable
9. Explain Local Variable Type Inference (var) and its behavior in inheritance with
an example.
10. Explain the Object class in [Link] commonly used methods such as
toString(), equals(), and hashCode().
11. Explain the concept of interfaces in Java and how they support multiple
inheritance with an example.
12. Create a Java program that demonstrates default, static, and private methods
in an [Link] their advantages.
Module -4
1. Define packages in Java. Explain their role in organizing classes and interfaces.
2. Explain how packages prevent naming conflicts and support modular
programming.
3. Discuss how packages provide access control and improve security in Java
applications.
4. Explain how packages support code reusability and improve maintainability.
5. Describe the syntax used to declare a package in Java with a suitable example.
6. Develop a Java program to create a package named mypack and import it into
a suitable class.
7. Explain the concept of exceptions in Java. Differentiate between checked and
unchecked exceptions with examples.
8. Develop a Java program to raise a custom exception for DivisionByZero using
try, catch, throw, and finally.
9. Explain multiple catch clauses and nested try statements with suitable
examples.
10. Explain the throw and throws keywords in Java with examples.
Module -5
1. Describe any two ways of creating a thread in Java with suitable examples.
2. Write a Java program to create multiple threads and explain how thread
scheduling works.
3. What are the uses of isAlive() and join() methods? Explain with a simple
example.
4. What are thread priorities in Java? How do they influence thread execution?
5. Explain synchronization in Java. Why is it required in multithreaded programs?
6. Explain interthread communication in Java. Briefly discuss suspend(), resume(),
stop() methods and thread states.
7. Develop a Java program to create a thread class where the constructor calls
the base class constructor using super and demonstrates concurrent execution
of main and child threads.
Please study all the lab programs from 7 to 12 for IAT -2 .