How can you avoid the runtime exception ?

How can you avoid the runtime exception ?

Runtime exceptions are unchecked exceptions, we can handle them through try catch block.
try { 
 ... do stuff ... 
 } catch (SomeException e) { 
 e.printStackTrace(); 
 throw e; 
 } 

By:Sumit Tripathi
Date:2021-05-15 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher