is try block possible without catch block?
Answers were Sorted based on User's Feedback
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 |
Answer / pooja prasad
Yes it is. But try should follow final block.
Is This Answer Correct ? | 0 Yes | 0 No |
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 |
what do u mean by html
in IBM PC -AT.WAT AT REFERS TO?
can we extend a class having only one parameterised constructor.Suggest the process to do it.
What is the entry point function of a DLL?
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
how CLR identify vb file?
10.Define filters,binary to hexadecimal,hexadecimal to decimal?
Write 5 differences between Memory Reference Instruction and Register Reference Instruction.
What is the purpose of <Trigger> element of <updatePanel> in Ajax
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?