Answer Posted / guest
Interface is similar to a class which may contain method's
signature only but not bodies and it is a formal set of
method and constant declarations that must be defined by
the class that implements it.
Interfaces are useful for:
a) Declaring methods that one or more classes are expected
to implement
b)Capturing similarities between unrelated classes without
forcing a class relationship.
c)Determining an object's programming interface without
revealing the actual body of the class.
Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
Is oracle charging for java?
Do I need java on my pc?
Why is boolean important?
Is stringwriter thread safe?
Is java 11 paid version?
Does java isempty check for null?
How many bytes is a string in java?
What is difference between java and java ee?
what is difference between equals and ==?
What is the collections api in java programming?
Difference between method overloading and overriding.
What is compareto () in java?
Is there any tag in htm to upload and download files?
What is final class?
How many functional interfaces does java 8 have?