Which of the following are true about the class defined inside an interface
1.it is not possible in the java Laungage. 2.The class is always public. 3.The class is always static. 4.the class methods cannot call the methods declared in the interface. 5.the class methods can call only the static methods declared in the interface.
Answers : 2,3,4.
What is essential to be known about classes defined in an interface? I know nothing about it. Would be greatful if anyone helps me
Thanks in advance. rajani
Joined: Dec 20, 2001
A class defined within an interface is no different than a top-level nested class. The only difference is that it is defined within an Interface, rather than a Class.