Can anyone explain just what the exception class is and how it works?
Also, how is inheritance used in java?
Exception and Inheritance Questions.
Page 1 of 11 Replies - 856 Views - Last Post: 11 July 2011 - 08:04 AM
Replies To: Exception and Inheritance Questions.
#2
Re: Exception and Inheritance Questions.
Posted 11 July 2011 - 08:04 AM
Inheritance is used when one class needs the base functionality in another, or there is a logical inherent relation. For example, a SavingsAccount class extends an Account class. Check out this tutorial on inheritance.
The Exception class is used to indicate there was a problem at runtime that isn't necessarily a syntax error. It is thrown using the throws keyword when there is a problem. Check out these tutorials on Exception handling:
http://www.dreaminco...-catch-finally/
http://www.dreaminco...g-and-chaining/
http://www.dreaminco...ed-customizing/
The Exception class is used to indicate there was a problem at runtime that isn't necessarily a syntax error. It is thrown using the throws keyword when there is a problem. Check out these tutorials on Exception handling:
http://www.dreaminco...-catch-finally/
http://www.dreaminco...g-and-chaining/
http://www.dreaminco...ed-customizing/
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote






|