why do we use interface in java?

Answer Posted / manasa

By default interface methods are abstract and public not
static methods

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of checked and unchecked exceptions in JAVA?

788


What is pass by value?

713


Write a program to print the pattern given below

715


What is functional interface in java example?

765


What happens if we don’t override run method ?

768


How do you trim a space in java?

726


What is the access scope of protected access specifier?

756


what is the purpose of "virtual"?

804


Is null an object in java?

786


What is data type in computer?

713


Can we sort hashset in java?

866


How does enum work in java?

784


How listener identify that the event came from a particular object?

1719


What is a file pointer?

715


Can we create more than one object singleton class?

812