is try block possible without catch block?

Answer Posted / t chinna shareef

Yes it is possible.
class Test{
public static void main(String[] args)throws Exception
try{
System.out.println("try without catch..!");
System.out.println(10/0);
}
finally{
System.out.println("Shareef");
}
}
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

details description on this mantis? who is founder of this mantis?

1679


what is web configuration file

1543


Any real time example of O2C process from taking order till creating invoice.

1786


What is the use of Differ interface check box in Ship confirm?

1847


Have you used callsymputx? what points need to be kept in mind when using it?

1536






what is log files in qtp what is use

1592


Suppose we are doing 4 operations on database using service, first operation is successful but due to some reason remaining 3 operations are failed. I) is this transaction successful or not? ii) How can you give that error message to user?

1507


Difference between delegates and Events?

1712


8.In DSP,Define Signal and System?and various type of signals.

1553


can u send some model papers how computer awareness questions are asked in goverment jobs(oriental insurance)to my mail id me.priyankapadma@rediff.com

1927


what is meant by life cycle of a business

1698


why not instantiating servet using new operator?

1494


What is %Type,%Rowtype?

1840


what is delegate and delegation model give the real live example on delegate model

2820


Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod

1533