What is the use of an interface?

Answer Posted / harathi

We can define a set of methods in an interface and
implement it in different ways in different classes

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about procedural programming language or structured programming language and its features?

762


Why bytecode is called bytecode?

793


How do you sort an array in java?

751


Difference between string s= new string (); and string s = "abv";?

971


What happens if we don’t override run method ?

751


How can we create a synchronized collection from given collection?

831


what is use of functional interface in java 8?

773


What is reflexive association?

1334


What is use of static in java?

780


What is t in generics in java?

788


What is Classloader in Java?

815


What is string example?

793


Write a program to find the greatest of three numbers in java?

755


Which class is used by server applications to obtain a port and listen for client requests?

700


How do you start a thread?

758