Originally posted by M Mistroni:
i missed another one in doing some mock exams..
Question 6.
An Interface can never be private or protected.
i answered true, the exam says proper answer was false....
i got a feeling that exam is incorrect.... can anyone confirm?
An package level interface can only public or dafault
but a nested interface can have all the access modifiers
interface A
{
}
class Outer
{protected interface B{}
private interface C{}
}
the above code will compile ok