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
In Java list the methods that can be overridden?
What is a java string?
Explain what is Marker interface?
Which api is provided by java for operations on set of objects?
What is class and its types?
How does linkedlist work in java?
Can we write method inside a method in java?
Are global variables initialized to zero?
What is sortedset in java?
What is output buffer?
Why are the methods of the math class static?
What are the restrictions imposed by a Security Manager on Applets?.
what is synchronization and why is it important? : Java thread
What is mnemonic code?
What is private static class in java?