adspace
What is the need of "creating and throwing an
UserdefinedException" when the "Exception" class is already
available?
Answer Posted / sri
if you want you could specify your own exception that you
know is gonna happen otherwise it is recommended to handle
the exception through exception class in catch block.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a classloader in java?
Differentiate between static and non-static methods in java.
Realized?
What is the difference between equals() and == in java?
Write a program to find the whether a number is an Armstrong number or not?
What are the differences between heap and stack memory in java?
What is a constructor overloading in java?
Is minecraft 1.15 out?
What is an object in java and how is it created?
What is the difference between break and continue statements?
How to create a base64 decoder in java8?
Explain public static void main(string args[]) in java.
Write a program to print count of empty strings in java 8?
What is java string pool?
What is parsing in java?