How can you avoid the runtime exception ?
,Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++,
HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher
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;
}