< 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

Please subscribe to our social media channels for daily updates.

Decodejava Facebook Page  DecodeJava Twitter Page Decodejava Google+ Page


Please check our latest addition