How to avoid the runtime exception ?

Answer Posted / ravikiran(aptech mumbai)

We cann't avoid a runtime exception it will be handled by
the jvm's default exception handler and print's the
particular stacktrace.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can force the garbage collection?

535


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

699


What is difference between variable declaration and definition?

511


What are different ways of object creation in java ?

569


what is thread in Java ?

620






What is flush () in java?

556


What’s the difference between callable and runnable?

543


Is space a character in java?

512


How variables are stored in memory?

535


What is the purpose of a default constructor?

576


How do you square a number?

578


Which package is imported by default?

633


Can the garbage collection be forced by any means?

528


List two java ide’s?

608


If system.exit (0); is written at the end of the try block, will the finally block still execute?

613