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 |
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
What will happen inside init() in servlet. my interviewer asked servlet lifecycle. i said "once servlet is loaded in to memory init() will be called which performs servlet initialization " . Again interview asked what values will be initialized . what is difference between init() and init(ServletConfig config).
2 Answers Infinite Computer Solutions, TCS,
Is java a digit method?
What is bom encoding?
how can we synchronize Hash map?
Give a brief description of java socket programming?
Why do we need wrapper class?
java can provide security ,how can provide?
8 Answers Aspire, BNP Paribas, Genpact, IBM,
what is mutual exclusion? : Java thread
Why Java is a platform independent language?
What is parsing a string?