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

what do u mean by html

5 Answers   Infosys,


in IBM PC -AT.WAT AT REFERS TO?

0 Answers   IBM,


can we extend a class having only one parameterised constructor.Suggest the process to do it.

0 Answers   Zensar,


What is the entry point function of a DLL?

0 Answers   Wipro,


What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

1 Answers  






how CLR identify vb file?

0 Answers   Tech Mahindra,


10.Define filters,binary to hexadecimal,hexadecimal to decimal?

0 Answers  


Write 5 differences between Memory Reference Instruction and Register Reference Instruction.

1 Answers   TCS, TJM,


What is the purpose of <Trigger> element of <updatePanel> in Ajax

0 Answers  


Hello...has anyone interviewed with Information Management Services(IMS)located in Silver Spring MD??If yes,what can you share about the programming test and the analytical test?

0 Answers   Information Management Services,


How to swap values between two variables without using a third variable?

24 Answers   HCL, TCS,


what is posix?

1 Answers   HCL,


Categories