Is it possible to create Userdefined Unchecked Exception
also?If Yes, give an example?
Answers were Sorted based on User's Feedback
Answer / saf
You can create unchecked exception by inhereting
RuntimeException class. Spec does not say that we can't do
it but it is advisable to go for custom checked exception
| Is This Answer Correct ? | 17 Yes | 2 No |
Suppose there is an Online shopping cart application having different objects like Cart, SelectionItem, Billing, COnfiguration, Authentication, Authorization, PersonalDetails etc. Out of this which one can be made a singleton pattern and why?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
Real Time sample code for Encapsulation and Abstraction. where to use abstract and where to use specifies like public private.
What is the purpose of java?
What are triggers in DB? Explain their types. How do they work?
How to reverse a string in java?
What is an anonymous class?
What is this keyword in java?
How many bits is size_t?
Is arraylist dynamic in java?
What are the important methods of java exception class?
Why all programming languages have main as a execution starting point?