Re: How to Throw Exceptions in Java?
Some code somewhere must throw before you can catch an exception. All the classes of an exceptions are derived from the Throwable class. You can also create your own exception classes to represent problems that can occur within the classes you write. Before catching an exception it is must to be thrown first. This means that there should be a code somewhere in the program that could catch the exception.
IF you hate me, please don't mention it. I know who hates me and who doesn't. You really do not have to make fun of people....
Bookmarks