1. We Can Use Finally after try block ,it will run gives message in finally block.But can not handle exception.
Continue readingCategory: exception handling
Nested Try Blocks In Java
We can use nested try block in java. Syntax:1 try { // some statement try { // some statement }
Continue readingMultiple Catch Block In Exception Handling In java
1. We can use multiple catch block for exception handling. Syntax: try { } catch () {
Continue readingHow to Handle Exception In Java
1. public class simple_example { public static void main(String[] args) { int i=10; int j=0; try { System.out.println(“i/j=”+i/j); } catch
Continue readingException Handling In Java
An exception is a event ,which interrupt the normal flow of the program. Throwable class is
Continue reading