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 are some alternatives to inheritance?
Mention some features of java?
What is java regex?
What are the benefits of operations?
Can a class be private in java?
Is space a char?
Can a class extend 2 classes in java?
How to create a fecelet view?
Is set ordered?
What is array sorting in java?
Which is better singleton or static class?
How many decimal places is a double?
What do you mean by stream pipelining in java 8?
Explain about core java?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.