What is the need of "creating and throwing an
UserdefinedException" when the "Exception" class is already
available?
Answer Posted / vinayakkatkar
There are some exceptions that are not defined by java api
ex- invalid age exception ,invalid number exception etc.
in user defined exceptions are raised by programmer,
thrown by programmer ,handled by programmer
while predefined exceptions are raised by system,
thrown by system
handled by programmer
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is backdrop?
What is protected access modifier?
What are the differences between this and super keyword?
How many bits is a string in java?
What is the private method modifier?
what is the difference between preemptive scheduling and time slicing? : Java thread
What is java command?
What is static keyword in java?
What are functions in java?
Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification
What is the difference between static and non-static variables in java programming?
What are the fileinputstream and fileoutputstream?
What is the public method modifier?
What is a char in java?
What about anonymous inner classes in java?