This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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 Thanks kanchan
1. False - it is possible. See JLS section 9.1.3. 2. True - according to JLS, "all interface members are implicitly public." 3. True 4. True - since the class is static, it can't make calls to non-static methods. 5. False - static methods may not be declared in an interface.