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
Give an example of call be reference significance.
What is are packages?
What do you understand by the term singleton?
What is singleton pattern?
How can u increase the heap size in the memory?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
What is r in java?
What is definition and declaration?
What function extracts specified characters from a string?
Can we serialize static variables in java?
Define how destructors are defined in java?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
What data type is a string?
What is the collections api in java programming?
What are the methods used to implement for the key object in the hash map?