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

without selecting individually each field in Action Class from jsp,what is the best process to select as many as field at a time automatically from jsp page by using value object class.

0 Answers  


1.Describe about your project?

1 Answers  


How to use string functions in QTP?give some examples

1 Answers  


Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in

0 Answers  


Can any one give an example (Source Code) on virtual function implemetation in Java?

0 Answers  






Tell me the jobs for the MCA Fresher in delhi, Noida..

0 Answers  


what is programming language?

2 Answers   TCS,


what is the difference between Windows application and Unix application?

0 Answers   Satyam,


MOV.CB 007H,ADCON1 MOVE.CT 001H,_OPTION_REG_7 MOV.CB 007H,CMCON

0 Answers  


how do i add a column dynamically in a table by using java application?

0 Answers  


what is best way to create a Thread class & why?

0 Answers  


how do you generate source code for the automatic generation for receipt number

1 Answers   Infosys,


Categories