Click here - / @interviewdot to get notifications. Interface And Abstract Class in Java 8 Differences
A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-re...
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-re...
What is the difference between interface and abstract class ?
Interface contains methods that must be abstract; abstract class may contain concrete methods.
Interface contains variables that must be static and final; abstract class may contain non-final and final variables.
Members in an interface are public by default, abstract class may contain non-public members.
Interface is used to "implements"; whereas abstract class is used to "extends".
Interface can be used to achieve multiple inheritance; abstract class can be used as a single inheritance.
Interface can "extends" another interface, abstract class can "extends" another class and "implements" multiple interfaces.
Interface is absolutely abstract; abstract class can be invoked if a main() exists.
Interface is more flexible than abstract class because one class can only "extends" one super class, but "implements" multiple interfaces.
If given a choice, use interface instead of abstract class.
Interface And Abstract Class in Java 8 Differences
Sur cette page du site, vous pouvez voir la vidéo en ligne Interface And Abstract Class in Java 8 Differences durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Interview DOT 26 janvier 2014, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,907 fois et il a aimé 2 téléspectateurs. Bon visionnage!