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 are the different data types in java?
What are wrapper classes in java?
extending thread class or implementing runnable interface. Which is better? : Java thread
Mention the default values of all the elements of an array defined as an instance variable.
What is illegal identifier in java?
What is jrmp?
What is == mean?
What is meant by flickering?
What is stack example?
Is it possible to override the main method?
How do you override a private method in java?
Can we declare the static variables and methods in an abstract class?
Can we create a class inside a class in java?
What is the synonym of procedure?
What do you mean by an object in java?