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 parameter example?
How do you sort arraylist in descending order?
What is string manipulation?
What is stringwriter?
What is assembly language?
What is void data type?
How do I enable java in safari?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
Is Constructor possible in abstract class in java ?
What is advantage of java?
What is a Transient Object?
Mention some interfaces implemented by linked list in java.
How is hashcode calculated in java?
What are untrusted applets?
How are multiple inheritances done in Java?