Hi, A default access modifier is not public, but why for an interface method, a default modifier (i.e. no modifier) makes the method public? It should'nt right? default is default If that's allowed, then why is'nt the interface itself allowed that implicity? [ May 02, 2006: Message edited by: Allen Sylvester ]
Life is like a day. If the day is of no use, neither a month or a year.
Joined: Feb 02, 2006
All interfaces are implicitly abstract and inclusion of that modifier is optional.
Joined: Apr 15, 2006
You should note the difference between default and implicit.
I'm talking in a purist's way, I guess. A default access modifier allows access , only in the same package. why is'nt that rule followed in an interface. I know that an interface can have only public methods, then why is it not Mandatory to put a 'public' access modifier? well, this is just purist probably. okay anyway, thanks anyway