Question
Explain the user defined Exceptions?

Answers

User defined Exceptions are the separate Exception classes defined by the user for specific purposed. An user defined can created by simply sub-classing it to the Exception class. This allows custom exceptions to be generated (using throw) and caught in the same way as normal exceptions.


Example:
class myCustomException extends Exception {
// The class simply has to exist to be an exception
}   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q When I was married 10 years ago my wife is the 6th member of the family. Today my father died and a baby born to me. The average age of my family during my marriage is same as today. What is the age of Father when he died?
  • Q How breadth first traversal works?
  • Q What is wp_nav_menu() function in cms?
  • Q 9.8 KM road bridge across the Ganga ?
  • Q what is the scientific name of Caiman Lizard ?
  • Q View this time-lapse movie (http://openstaxcollege.org/l/conceptus) of a conceptus starting at day 3. What is the first structure you see? At what point in the movie does the blastocoel first appear? What event occurs at the end of the movie?
  • Q Give a brief account on Parthenogenesis.
  • Q Why can the amnion also be considered an adaptation to terrestrial life?
  • Q Explain about inflorescence in Lamiaceae ?
  • Q Who was the father of Snakuni?
  • Q Can a Shia Muslim girl marry to a non-Muslim?