Are nested try statements are possible?
Answers were Sorted based on User's Feedback
yes,nested try statements are possible,nothing wrong
try {
//some code
try {
//some code
}
catch(Exception e){
}
}
catch(Exception e) {
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
yes try with in try is possible.outer try gets evaluated
first then the inner try
| Is This Answer Correct ? | 2 Yes | 0 No |
How do you check if two strings are equal in java?
Is a boolean variable?
How to instantiate member inner class?
What is externalizable?
Define inheritance with reference to java.
java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at try then how the flow is?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
I want to run a simple hello world java (HelloWorld.java) program using a batch file. How can i run it and how to construct a batch file.
1.) if we use "private" in place of "public" in public static void main()... 2.) if we use "int" in place of "void".... 3.) can we ommit "static" keyword from that statement.... 4.) also can we give the command line arguments type as int type or float,etc.(.i.e (string args[]))
int a=1; float b=1.0; System.out.println(a==b);
13 Answers CTS, Honeywell, McAfee,
we have a 100 classes at that time which class we have to write main method? pls help me
What is a java object and java application?