Today , i came across this code
class Something
{
public static void main(String[] args)
{
try
{
System.out.println("In try block");
return ;
}
catch(Exception e){
System.out.println("Hello World in catch!");
}
finally
{
System.out.println("Hello World in finally!");
}
}
}
Now can anyone tell me the output with reason plz... ( i know the output but i want to hear from one of you with explanation .I will get back to this thread once anyone replies with answer.)
I will ask my doubt once anyone gives the answer