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 internal iteration in java se 8?
What is the difference between multiple processes and multiple threads?
What is main in java?
What is difference between path and classpath in java?
What is the difference between final, finally and finalize() in java?
What must a class do to implement an interface in java programming?
What is difference between ++ I and I ++ in java?
Explain about instanceof operator in java?
What will be the initial value of an object reference which is defined as an instance variable?
How to create a custom exception?
Why java strings are immutable in nature?
What is numeric function?
What is the purpose of abstract class?
What is jee6?
What do you mean by stack?