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
Is ruby built on java?
What is java english?
Is java se free?
Explain what access modifiers can be used for variables?
Give reasons supporting that string is immutable.
What is java algorithm?
Similarity and difference between static block and static method ?
What does nullpointerexception mean?
Can we have any code between try and catch blocks?
Why is java logo a cup of coffee?
How does callback work in java?
What is the static method?
What is parsing a sentence?
Can a class have multiple subclasses?
Difference between static and dynamic class loading.