What is an 'Interface' in Java

846 views · Published 25 January 2014 · 3:44 · Indexed 21 October 2026

Channel: Interview DOT · 2014 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. What is an 'Interface' in Java

What is an "Interface" in Java  ? Java Interview Question And Answer ? 

"Interface in Java" :

All interface methods are implicitly public and abstract. you do not need to actually type the public or abstract modifiers in themethod declaration, but the method is still always public and abstract.

All variables defined in an interface must be public, static, and final, interfaces can declare only constants, not instance variables.

Interface methods must not be static.

Interface cannot be marked as final,strictfp, native.

An interface can extend one or more other interfaces.

An interface cannot extend anything but another interface.

An interface cannot implement another interface or class.

An interface must be declared with the keyword interface.


What is an 'Interface' in Java

A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Other Top Job Portals
www.Naukri.com
www.MonsterIndia.com
www.TimesJobs.com

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

More from this channel