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

Java Packages and Exception Handling Guide

The document outlines key concepts related to Java packages and exceptions, including visibility of class members, access modifiers, and the process of importing packages. It also covers exception handling fundamentals, types of exceptions, and provides guidelines for creating user-defined exceptions. Various programming tasks are suggested to illustrate these concepts effectively.

Uploaded by

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

Java Packages and Exception Handling Guide

The document outlines key concepts related to Java packages and exceptions, including visibility of class members, access modifiers, and the process of importing packages. It also covers exception handling fundamentals, types of exceptions, and provides guidelines for creating user-defined exceptions. Various programming tasks are suggested to illustrate these concepts effectively.

Uploaded by

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

Chapter 09 - packages

---------------------
packages
packages and member access
importing packages

> What is a package?


Design and develop a program to demonstrate the usage of package.

> List the 4 categories of visibility of class members.


Design and develop programs to demonstrate the visibility of class members.

> What is meant by private, protected and public in Java.


Illustrate the access modifiers in Java, with the help of a table.
Explain

> What is meant by importing packages.


Develop a program to illustrate importing packages.

Chapter 10 - Exceptions
-------------------------------
Exceptions - handling fundamentals
exceptions types
uncaught exceptions
using try and catch
multiple catch caluses
nested try statements
throw
throws
finally
javas built in exceptions
creating your own exceptions subclasses
chained exceptions

> What is an user defined exception?


Design and develop a program to demonstrate user defined exception.

> Write the general form of an exception handler block.


Design and develop a program to demonstrate multiple catch blocks.

> List the keywords used in exception handling.


Design and develop a program to demonstrate super sub catch.

> What is an exception?


Design and develop a program to demonstrate nested try block.

> Write a program to handle ArithmeticException and ArrayOutOfBoundsException.

> Differentiate between checked and unchecked exceptions.

> What is the difference between exception and error.


List examples of exceptions and errors in Java API.

> What is user defined exception.


Design and develop a program to demonstrate user defined exception.

You might also like