answersLogoWhite

0

it informs compiler about its possible exceptions.

For example,The purpose of Java exception is to tell the Java runtime system what can go wrong

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Engineering

What is the implication of catching all the exceptions with the type Exception?

though catching exceptions is a good practice inside java code, catching all exceptions of the type exception is not the best way to go. Specific exceptions need to be caught instead of the generic Exception being caught. Also, different types of exceptions need to be handled separately.


Is it essential to catch all the exceptions and justify your answer?

Checked exceptions should be caught. Otherwise, compile errors are generated.


Describe the JAVA throwable class hierarchy and types of exceptions?

In Java there are two main types of Exceptions. * Checked Exceptions - The ones that can be checked & handled in our code. Ex: I/O Exception, SQL Exception etc. In most cases, the compiler itself forces us to catch & handle these exceptions * Un-checked Exceptions - The ones that we cannot & should not handle in our code. Ex. Null Pointer Exception The java.lang.Throwable is the super class of all errors and exceptions in Java. Only objects of this class can be thrown & caught and handled by try-catch blocks. Ex: try { ..... ..... } catch (Exception e){ ... } finally { ... }


How many types of user defined exceptions are there and list them?

They are user-defined. In other words: You & Me (Users) define them (make them). There is an endless number of user-defined exceptions


What is defferred exceptional handling?

Deferred exception handling refers to a programming design pattern where individual class level methods do not handle exceptions using try catch blocks. They just cascade the exceptions to the calling methods using the "throw" keyword and all exceptions are handled centrally in one place. This is called deferred exception handling where the exceptions are deferred in the place where they occur and propagated to a parent class which handles it.

Related Questions

What is the purpose of creating a vehicle list in the fleet management function?

To track as exceptions all transactions for vehicles not on the list


What are the vocabulary term of exploration and colonization?

Exploration: The act of travel for the purpose of discovery. Colonization: The act of country claiming, ruling, or settling its people in a territory outside its boundaries.


What are the types of exception in java?

Exceptions are of two types: checked exceptions and unchecked exceptions.


Claiming age relaxation meaning?

Claiming age relaxation


Demand for Money Owed?

Get StartedThe only permissible purpose of the Demand for Money Owed letter is for a creditor to collect debts owed to that creditor. The person preparing and signing this letter MUST be the person claiming the amount of money owed or be an employee or representative of the business claiming the money owed.If the letter is not prepared for this purpose, you may be required to comply with the stringent requirements of theattorney general's officeor a lawyer for additional information.


Claiming of unclaiming unpaid divided?

Claiming and not claiming unpaid dividends are when you have paid a debt. Once you have paid a debt it is is claimed.


30-Day Past Due Letter?

Get StartedThe only permissible purpose of the 30-Day Past Due letter is for a creditor to collect debts owed to that creditor. The person preparing and signing this letter MUST be the person claiming the amount of money owed or be an employee or representative of the business claiming the money owed.If the letter is not prepared for this purpose, you may be required to comply with the stringent requirements of theattorney general's officeor a lawyer for additional information.


60-Day Past Due Letter?

Get StartedThe only permissible purpose of the 60-Day Past Due letter is for a creditor to collect debts owed to that creditor. The person preparing and signing this letter MUST be the person claiming the amount of money owed or be an employee or representative of the business claiming the money owed.If the letter is not prepared for this purpose, you may be required to comply with the stringent requirements of theattorney general's officeor a lawyer for additional information.


90-Day Past Due Letter?

Get StartedThe only permissible purpose of the 90-Day Past Due letter is for a creditor to collect debts owed to that creditor. The person preparing and signing this letter MUST be the person claiming the amount of money owed or be an employee or representative of the business claiming the money owed.If the letter is not prepared for this purpose, you may be required to comply with the stringent requirements of theattorney general's officeor a lawyer for additional information.


How can someone live with you without claiming anything?

They can but you would be bored with out claiming anything


How do you make a sentence with exceptions?

I'm ruling out exceptions as I go.


Can 'claiming' be used in a sentence?

I am not claiming to be the son of Czar Nicholas the Second, I am the son of Czar Nicholas the Second! ---- Whoever it was claiming to be from Mars is wrong; Mars is uninhabitable.