![]() |
JAVA EXAMPLE PROGRAMS |
Publish Your Article Here
|
|
Java2Novice - YouTube Channel
Knowledge Centre
Interface and its usage
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 declaring methods that one or more classes
are expected to implement, capturing similarities between unrelated classes without forcing a class relationship and determining an object's
programming interface without revealing the actual body of the class.
Famous Quotations
The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails.
-- William Arthur Ward
|
Reference: Java™ Platform Standard Ed. 7 - API Specification | Java™ Platform Standard Ed. 8 - API Specification | Java is registered trademark of Oracle. |
Privacy Policy | Copyright © 2022 by Nataraja Gootooru. All Rights Reserved. |