did interface can implementation method ? i know its not
possible but my interviewer said its possible ..but how..?
any one have idea ???
Answer Posted / suhail
Interface can i have implementation for method by using
class inside the interface this is the only way to have the
implementation...
public interface A{
public class B{
public void m1(){
}
}
}
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is meant by anonymous class?
Difference between comparator and comparable in java?
What is literal example?
What do you mean by thread safe?
Which list is sorted in java?
What is meant by bytecode?
Can we overload run() method in java?
What are the two ways of implementing multi-threading in java?
Can you explain the cs option of java interpreter?
What is a memory leak in java?
What is java basic concept?
What is the difference between Array and Hash Table?
What is jee6?
What is comparator in java?
Convert a BST into a DLL and DLL to BST in place.