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 a java list?

840


What are 5 boolean operators?

857


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

838


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1790


How variables are declared?

760


Difference between a process and a program?

846


Can you instantiate the math class in Java?

829


How can we make a class virtual?

864


What must a class do to implement an interface in java programming?

766


What is data type example?

768


What do you mean by hashing?

872


List the different types of classloaders in java.

747


What language is java written?

786


Why singleton class is used in java?

839


Is array primitive data type in java?

780