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 |
how to convert hashmap to arraylist with iteration
kindly send interview materials
any drawback are there in mantis?
Write a shell program to test whether a given year is leap year or not ?
What parameters are used to run a JCL JOB on a perticular DAY and TIME and DATE
Hi, I'm doing B.com 3rd year. Simultaneously I'm doing software engineering in a private institution. I would like to know whether my B.com graduation alone is enough to get me a job in the IT field or should I do some PG course not MBA... suggest me...
Why data bus is bidirectional and address bus is unidirectional?
1. How many jobs can we write in a single file? 2. How many maximum members can exist in a single partition data set(pds) in jcl?
how many trailing zeroes are there in 100! (100 factorial)?
What is nocopy in plsql?
How same session variable can be used in both Asp and Asp.net?
THERE ARE 4 SOURCE FILES WHICH CONTAINS SAME METADATA CREATE A TARGET THAT SHOULD DISPLAY THE FILE NAME ALONG WITH THE RECORD PLEASE SEND THE ANSWERFOR THIS QUESTION WITH MAPPING