What is "finally" keyword?

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


Please Help Members By Posting Answers For Below Questions

Is ruby built on java?

535


What is java english?

496


Is java se free?

524


Explain what access modifiers can be used for variables?

593


Give reasons supporting that string is immutable.

500






What is java algorithm?

525


Similarity and difference between static block and static method ?

538


What does nullpointerexception mean?

618


Can we have any code between try and catch blocks?

563


Why is java logo a cup of coffee?

627


How does callback work in java?

608


What is the static method?

571


What is parsing a sentence?

549


Can a class have multiple subclasses?

588


Difference between static and dynamic class loading.

590