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
How do I remove a character from a string in java?
What is deserialization?
Why string objects are immutable in java?
placement papaers of spring computing technology
What is a return in java?
What is the maximum size of hashmap in java?
What are basic data types?
What is a for loop in java?
What is string in java with example?
What are the important features of Java 8 release?
Explain importance of inheritance in java?
Are generics important java?
What is the purpose of using the java bean?
How to check if a list is sorted in java?
how to handle exceptions in ejb?