is try block possible without catch block?

Answers were Sorted based on User's Feedback



is try block possible without catch block?..

Answer / patil chaitanya

try
{
}
//without catch block
this ts not possible.
But
we can write the finally block below the try block.
Then try block possible without catch block.

Is This Answer Correct ?    1 Yes 0 No

is try block possible without catch block?..

Answer / pooja prasad

Yes it is. But try should follow final block.

Is This Answer Correct ?    0 Yes 0 No

is try block possible without catch block?..

Answer / 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

More Programming Languages AllOther Interview Questions

Hi can you please help for the following. I have a ASP.Net web page I want to print the whole page how is it possible? I want It in ASP also.Please send me the solutions dipankar.hazari@gmail.com . Thanks in advance.

1 Answers   Philips,


what is integration testing in real time applications?

1 Answers   CTS,


what is software

2 Answers  


Iam using Microsoft Visual Studio to create a system for mobile store I want to know how to calculate mobile price that the customer buy and how to reduce quantity from the data base that we have for mobile .And also how to calculate revnue for each mobile and revnue for the total mobile

1 Answers  


Is anyone has done the ASP.NET MVC4 workshop course(2 days) from Peers Technologies. Let me know. I need to talk before joining ASP.NET MVC4 training at peers, Hyderabad.

1 Answers  


explain how to make a control visible and invisible during runtime

3 Answers  


how can we maintain the previous version scripts to new version.

1 Answers   DST Global Solutions,


what is d main diff between the java and .net framework

1 Answers   Wipro,


what is the meaning of without standing arrears?

1 Answers   TCS,


what is the maximam caption size of lebel

1 Answers  


Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)

6 Answers   CTS,


Plz sent me in .net 2.0 interview Question & answers?

1 Answers  


Categories