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
What is private static class in java?
What is purpose of keyword void?
Can an unreferenced object be referenced again?
How does callback work in java?
What is an example of declaration?
What is the preferred size of a component in java programming?
What is data and its types?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?
What is the use of accept () method in java?
What is the byte order of byte buffer?
What are thread priorities and importance of thread priorities in java?
What is final keyword in java?
What is the difference between superclass and subclass?
Can you extend singleton class?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?