姜青林 发表于 2013-8-16 16:07:53

[Oracle interview]If my class already extends from some other class what should I do if I want an instance of my class to be thrown as an exception object?

胡一搏 发表于 2013-8-16 16:14:01

One cannot do anytihng in this scenarion. Because Java does not allow multipleinheritance and does not provide any exception interface as well.
页: [1]
查看完整版本: [Oracle interview]If my class already extends from some other class what should I do if I want an instance of my class to be thrown as an exception object?