What will happen if we cannot mention "finally" in Java
Program ???
Answer Posted / busi
Nothing happend , if any information should be displayed on
console we can use this finally block.Irrespective of code
execution the jvm will display the message on console.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Is singleton class immutable?
What is the difference between access specifiers and access modifiers in java?
Does google use java?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
What is cr keyboard?
How can you say java is object oriented?
Can you declare the main method as final?
Why use string handling in Java?
Which method must be implemented by all threads?
What about instanceof operator in java?
Can we have try block without catch block?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
What is methods and methodology?
When do you get classcastexception?
Is there any sort function in java?