Rohtak Dev

Greenhorn
+ Follow
since Feb 17, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Rohtak Dev

Hi ,

I have tried to create java.lang.AbstractMethodError from table 9-4 as mentioned in the exercise.
Here's how i was able to create the error:


here's the code:
#1 created and compiled an interface

#2 Implemented that interface and compiled it.


#3 Then changed interface to have a new method and compiled; didn't compile inplementing class.


#4 created a class with main method, initialized class and called new interface method.



I was able to successfully catch the exception.

Thanks for a great book.
12 years ago