posted 22 years ago
public interface AQuestion
{
void someMethod();
}
The class which implements AQuestion
a. Should have someMethod which must necessarily be public.
b. Should have someMethod which could be "friendly" or public
c. Should have someMethod which should not throw any checked exceptions.
d. Should have someMethod which cannot be sychronized as sychronized is not in the signature of the interface defination.
The answer given is a and c, but IMO answer should be b,c.
can anybody explain, how the answer a is correct.