hi...
You had it completely wrong....
the statement as in the book is as follows:
[B] relates to Wrapper Classes which, as we know, are marked final [/B]
.
let's see, what this sentence says:....
it says that toString() is a method that relates to wrapper classes...
and that these Wrapper classes are marked final.. i.e., you cannot subclass
them in anyway... which is true....
isn't it..>???
besides
you should remember that we override the
toString() method to tell the user of what the object does......
so in order to do such thing we have to override that particular method... which as per your Question states that's declared final.....
now we know that we cannot override a final method butwe have to use it .. as it was declared.... right..???...
so your assumption that toString() is marked final is wrong...
its the Wrapper classes that are marked final....
understood....
ok.