yes i know all the rules of overriding and i also understand this error...but i want to know that...why these differences arise between book and real implementation in jdk 1.6.
yes there is compile time error....i have ebook of scjp6...if you want then i send you that book on your id...after that you told me what the problem here..........