what is the purpose of the final in the try-catch-final
Answer Posted / srinivasa
Finally is a block where we can write the code to free up
the resources like File closing,socket obj closing .
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
what is object-oriented programming in java?
What does the string method compareto () do?
What is the difference between private & public & friendly classes?
Which is dependent variable?
What is a method type?
Can you use this() and super() both in a constructor?
Explain restrictions for using anonymous inner classes?
Which is faster string or stringbuilder?
What is hasnext in java?
What is the function of java?
Why are getters and setters used?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
Who found java?
What do you understand by abstract classes?