Originally posted by septimiu pelau:
Hi there
the first chapter's two-minute drill (SCJP5, page 69) states at Interface Implementation, bullet #2:
"Interfaces can be implemented by any class, from any inheritance tree."
I think this is correct only if interfaces are declared as public. You can have a default interface as well, which is not visible by a class from a different package.
Am I right?
thanks,
Septimiu
Yes. You have to take access privileges into account.