Hi,
So far, I have been thinking that the default access privilege for a method in an interface is default.
I tried to following code snippet
and i got the following compile time error :
Test.java:50: get() in
Test cannot implement get() in x; attempting to assign weaker access privileges; was public
class Test implements x {
^
1 error
But when the above code is changed as follows, it works fine.
Does this mean that the default access privilege of a method in an interface is public?
Could somebody please clarify.
Thanks
Babu