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

how to get second highest salary from a employee table and how get a 5th highest salary from a employee table by using proc sql?

0 Answers   ABC,


Where do we need Operator overloading?

0 Answers   BirlaSoft,


Hi all... I had completed MSC(Computer) and had join the construction company based on sap.they want me to work on abap.but software company is totally different from construction company and they want me 2 grasp it as fast i can.i am finding it difficult.what should i do??????

0 Answers  


kindly send interview materials

0 Answers   SoftSquare,


What is algorithm in SCD Type2(SAS DI Studio Transformaton)?

2 Answers  


what is log files in qtp what is use

0 Answers   HSBC,


what is woransient key word? how it is used in java

0 Answers   Convergys,


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

0 Answers   GE,


What is WEB 3.0? What are the features their in WEB3.0

0 Answers  


What are events in smartforms?

0 Answers   Accenture,


what is the difference between read the data from table and infotype

0 Answers  


How to get the index of the clicked field in reports in ABAP?

0 Answers   Deloitte,


Categories