< Prev
Next >



Interface in Java





Interface is a 100% abstract class that is declared with the interface keyword. Methods of interface are implicitly abstract, hence while declaring an interface, you must not provide implementation of any of its methods in curly braces {} and they should rather end with a semicolon ;

interface A
{
void method(); // method of an interface ends with a semicolon.
}





Some important points about interface







Please share this article -

Facebook Google Pinterest Reddit Tumblr Twitter



< Prev
Next >
< Abstract Class
Final keyword in Java >
Please subscribe our social media channels for notifications, we post a new article everyday.

Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

Coming Next
-
Python

Ad2