Answer Posted / ss
The finally is Java keyword that is used to defined a block
that is always executed in a try-catch-finally statement.
try{
int x=10/2;
}
finally{
system.out.println("i am from finally");
}
here compiler will not compliant.why?even though x=10/2,x=10/0.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can java cast null?
What is immutable in java?
How many bytes is a string in java?
What is boolean logic?
What is balanced tree in java?
what do you understand by synchronization? : Java thread
Can a final method be overloaded?
What is difference between hashset and hashmap in java?
What do you mean by chromounits in java8?
Why is static used?
How to run a JAR file through command prompt?
What is the benefit of singleton pattern?
What is java regex?
What is a vararg?
What are mutable classes?