Hi
What i meant was questions like these
Which of the following statements is not true?
a. An interface that is declared within the body of a class or interface
is known as a nested interface.
b. A constant can be a member of an interface.
c. A class declaration can be a member of an interface.
d. A class that implements an interface must implement all of the methods
declared within the interface.
e. None of the above.
The answer is d
For this kind of a question we need to be aware that this is possible..
interface I
{
public class Inner
{
}
interface InnerInterface
{
public void hi();
}
}
and even this ....
public class ClassName
{
public static void main(
String[] args)
{
ClassName cn = new ClassName
}
interface Inclass
{
}
}