a) An interface that is declared within the body of a class or interface is known as a nested interface.
b) A class declaration can be a member of an interface.
the two questions are from a mock exam. the answer is that they are right. but I
test them. they are wrong.
i.e
interface A{
B b; //if you declare B here, there is a compile error.
A1 a; //the same as above. you have to initialize a.
}
interface B{}
class A1{}