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
Which sorting is best in java?
Is heap stored in ram?
What is a method type?
What are memory tables?
What is a marker interface?
What is meant by structural programming?
Which command from the jdk compiles a java program?
What is mutable object and immutable object?
Why can we not override static method?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
Difference between arraylist and vector.
what do you mean by java annotations?
What is passing value java?
What are the different types of multitasking?
What java is used for?