pramod karnani wrote:
Hi All,
I created separate interface to declare extra methods which extends Sun interface.
That sub interface is implemented by Data class so it means Data class also implements Sun interface also , correct?
Regards,
Pramod
Leave db.java alone! Do research on code to an interface and not implementation. (google it). Sun may perform the following check on your interface.
DB candidatesDB = new Data();
This is why Data MUST extends DB. Whats more is why can the sun interface not extend it's own interface that it need functions for?
SCJP 6.0, SCJD (400/400), SCBCD for JEE 5, SCWCD 1.4 I do videos for development at
http://www.youtube.com/user/thejartender?feature=mhee
I am probably the only developer ever to have had an orange sized brain tumor in my brain while learning development!!