What error occurs if a try-catch-finally statement sequence
does not have a catch clause?
Answers were Sorted based on User's Feedback
Answer / nagaraju
we can have try block with out catch block, but we should
have finally block after try block(if catch block is not
there). If any exception occurs in the try block or not
finally block will be executed.
| Is This Answer Correct ? | 2 Yes | 1 No |
How do you define a singleton class?
What are wrapper classes?
What is a parameter in java?
What is static method with example?
I want to print “hello” even before main is executed. How will you acheive that?
What does the three dot emoji mean?
What is string array?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
What is the purpose of the runtime class in java programming?
Why singleton pattern is better than creating singleton class with static instance?
Give few difference between constructor and method?
Why do we override tostring method in java?