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


Please Help Members By Posting Answers For Below Questions

What is parameter example?

791


How do you sort arraylist in descending order?

807


What is string manipulation?

726


What is stringwriter?

747


What is assembly language?

749


What is void data type?

769


How do I enable java in safari?

792


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

968


Is Constructor possible in abstract class in java ?

823


What is advantage of java?

777


What is a Transient Object?

851


Mention some interfaces implemented by linked list in java.

788


How is hashcode calculated in java?

734


What are untrusted applets?

852


How are multiple inheritances done in Java?

865