answersLogoWhite

0

Exceptions are generated by the Java Virtual Machine during program execution. When the JVM comes across a piece of code that it cannot execute properly or a piece of code that will create issues when the JVM executes it will generate an exception. Ex: divide by 0 or trying to access a null variable etc

The language also has syntax that can catch and handle these situations. It is called the try - catch - finally construct.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

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

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


Why do eukaryotic cells require mitochondria?

As an energy source (NOTE there re exceptions).They need energy for functioning. This energy is generated by mitochondria


What are the types of exception in java?

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


Why use catch keyword in java?

no, because catch is used to handle exceptions which are generated from try block


How do you make a sentence with exceptions?

I'm ruling out exceptions as I go.


What are the release dates for The Exceptions - 2012?

The Exceptions - 2012 was released on: USA: 2012


How do you code the program using arithmetic exceptions?

Never.A program should handle exceptions, but should NEVER USE exceptions to control program flow.


How is the solar energy generated?

it is generated by the sun


Where can geothermal energy be generated?

It can be generated somewhere.


What does on an exceptions basis mean in a legal document?

When a legal document says on an exceptions basis it means just that. There are certain exceptions to their rules and laws based on the individual.


Difference between checked and unchecked exception?

Checked exceptions are exceptions which need to be handled explicitly. These are the ones which require a try-catchblock or a throws keyword.Unchecked exceptions are exceptions which have no obligation to be handled. A NullPointerException is one common example.


What is internally generated revenue?

Revenue that is generated internally!