Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can u handle run time exception in java? explain with
brief explanation with examples?

Answer Posted / pavithra

Runtime exceptions represent problems that are detected by
the runtime system. This includes arithmetic exceptions
(such as when dividing by zero), pointer exceptions (such
as trying to access an object through a null reference),
and indexing exceptions (such as attempting to access an
array element through an index that is too large or too
small).

Runtime exceptions can occur anywhere in a program and in a
typical program can be very numerous. Typically, the cost
of checking for runtime exceptions exceeds the benefit of
catching or specifying them. Thus the compiler does not
require that you catch or specify runtime exceptions,
although you can.

Is This Answer Correct ?    5 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the technique adopted to create an immutable class?

1036


Can we sort hashmap in java?

896


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

1042


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

983


What does  mean in regex?

987


How many types of memory areas are allocated by jvm?

975


What about method local inner classes or local inner classes in java?

1005


Define the term string pool?

954


Name few "optional" classes introduced with java 8 ?

1067


Which is better list or arraylist in java?

808


How do you add an element to a set in java?

975


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

1029


How do you write a good declaration?

906


Why hashcode is used in java?

917


How does multithreading take place on a computer with a single cpu in java programming?

955