public static void main(String[] args) {
try{
System.out.println("This is try block...!!");
}
catch(Exception e)
{
System.out.println("Exception is "+e);
}
finally
{
System.exit(0);//terminates finally block
System.out.println("This is finally block");
}
System.out.println("This is outside the try catch block...");
}
In above code i got output like this "This is try block...!!"
But i want output such that, "This is try block...!!" "This is outside the try catch block...!!"
can any one give me correct solution for this problem? and how can i get output as i want?does any one explain me please?