0% found this document useful (0 votes)
3 views2 pages

Java OOP Concepts and Exception Handling

The document outlines various topics related to Object-Oriented Programming (OOP) in Java, including method overriding, inheritance, exception handling, and multi-threading. It includes tasks such as writing code snippets, developing programs for custom exceptions, and demonstrating concepts like polymorphism and synchronization. Additionally, it covers the creation and usage of packages, interfaces, and type wrappers in Java.

Uploaded by

smithasrinivas8
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Java OOP Concepts and Exception Handling

The document outlines various topics related to Object-Oriented Programming (OOP) in Java, including method overriding, inheritance, exception handling, and multi-threading. It includes tasks such as writing code snippets, developing programs for custom exceptions, and demonstrating concepts like polymorphism and synchronization. Additionally, it covers the creation and usage of packages, interfaces, and type wrappers in Java.

Uploaded by

smithasrinivas8
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

DEPARTMENT

CSE(AIML)
OF

18 km, Bannerghatta Road, Bengaluru – 560083 | [Link] |


[Link]@[Link]
OOPS With JAVA
1. method overriding, dynamic method dispatch, abstract class and uses super in java
[Link] a java code snippet how inheritance can be prevented
3 Explain package, access protection, import packages, exception and exception types in
java.
[Link] interface, interface reference, variables in interface, nested interface and multiple
inheritance in java
5. Describe the general form of an interface and implementing interface with an example
6. Explain the general form of an exception handling block and throws clause in java
exception handling.
7. Develop a java program to raise a custom exception (user defined exception) for division
by zero using try, catch, throw and finally

8. Illustrate multi-threaded programming, thread priorities, synchronization, messaging and


the main thread in java.
9. Explain the different methods of creating threads in java.
10. Develop a java program to create a package named my pack and import and implement it
in a suitable class.
11. Summarize inter-thread communication, enumeration, type wrappers, auto-boxing and
auto-unboxing in java.

12. Explain with syntax values () and values of () methods in java


13. Illustrate the usage of super keyword in java with suitable example. Also explain the 14.
dynamic method dispatch.
14.1Write a java program to implement multilevel inheritance with 3 levels of hierarchy.

15.1Summarize class member access in java

16. Explain how an interface is used to achieve multiple inheritances in java

[Link] a java program to create a class named shape. Create three sub-classes namely:
circle, triangle and square, each class has two member functions named draw () and erase ().
18. Demonstrate polymorphism concepts by developing suitable methods, defining member
data and main program
[Link] the concept of importing packages in java and provide an example demonstrating
the usage of the import statement.
20. Build a java program for a banking application to throw an exception, where a person
tries to withdraw the amount even though he/she has lesser than minimum balance (create a
custom exception)

[Link] thread. Also discuss the different ways of creating a thread.

[Link] synchronization can be achieved between threads in java? explain with an example.

[Link] a java program to create a package “balance” containing account class with display
balance () method and import this package in another program to access method of Account
class.
[Link] the type wrappers supported in java.
25. Explain Autoboxing/Unboxing that occurs in expressions and operators

You might also like