2 Answers - Sort by: Date | Rating
Interface contains only method names it doesn't contains the body of the methods.It should be implemented by other class .The other classes who implements the interface should be defined all the methods.Any one can create any number of classes implementing the interface. We can not create object to the interface but we can create reference for the interface.
0
0
Interface term in general sense, is used for the association between the peripherals and the computer; the peripherals can be the devises like cd drive, scanner, hard drive and printer.
If we talk in the context of java programming language then, interface is a program or a method which have its own features which the classes use later on.
The classes implement the interfaces with the help of "interface" keyword.
Interfaces are not immediately created or instantiated because these are abstract.
To implement an interface in our class the "implement" keyword is used, for example (implement interface.).
All the procedures and methods in the interface must be implemented in the class, if a class implements an interface, otherwise, if the class don't implement all methods then it will be an abstract class.Interfaces are accustomed to gather alike resemblance, which classes of diverse kind share, but don't essentially comprise a class association.
There is also the good feature of interface that, there is no need to know the class type of an object for using that object, we just implement the interface of our choice.
Interfaces are very good and nice feature of java programming, which give the facility of using predefined functions as a whole.
If we talk in the context of java programming language then, interface is a program or a method which have its own features which the classes use later on.
The classes implement the interfaces with the help of "interface" keyword.
Interfaces are not immediately created or instantiated because these are abstract.
To implement an interface in our class the "implement" keyword is used, for example (implement interface.).
All the procedures and methods in the interface must be implemented in the class, if a class implements an interface, otherwise, if the class don't implement all methods then it will be an abstract class.Interfaces are accustomed to gather alike resemblance, which classes of diverse kind share, but don't essentially comprise a class association.
There is also the good feature of interface that, there is no need to know the class type of an object for using that object, we just implement the interface of our choice.
Interfaces are very good and nice feature of java programming, which give the facility of using predefined functions as a whole.
0
0
- Is There A Way To Skip A Mission On Vice City?
- What Is Centralize Database Management System?
- Upto How Many Computer Can I Connect Through Mesh Topology?
- What Is The Email Address Of Executive Of Ford Motor?
- I Don't Think So.....what Is Gem Code 4 Tomorrow?
- I Need A Security Disk Aol 9. Where Can I Find One?
- What Is Multi-processor?
- On Facebook When Ppl Send U Apps To Play, Farkle, Or Send You Hearts, Etc. If You Accept It Says Ppl Can Gain Info About You, What Info? Your Email, Your Friends' Email Addresses, Etc?
- Can You Get Mounts For Free On Wizard 101?
- What Network Configuration Would Best Suit For A Dormitory Floor?
- How Can You Set Up A Computer So That You Can Play A Video On Your Projector In Full Screen But Do Other Stuff On The Computer (check Email, Surf The Web, Etc.). My Old School's Computers Worked Like This But I Don't Know How. Does Anybody Know?
- How Can You Set Up Your Computer So You Can Play Videos Full Screen On Your Projector And Do Other Stuff On Your Computer?
- How Do You Unlock A Website?
- What Does Bad Egg Do In Pokemon Platnum?
- Where Can I Download New Moon For Free Without Filling In My Name And Email Address?
- Where Can I Find Palkia And Dialga In Pokemon Deluge?
- Can A Ps2 Play A HD DVDs?
- Can A Ps2 Play HD DVDs?
- How To Put Music On Rca Mp3 On Itunes?
- How Can I Read Some Else Texts?
- How To Make The Venetian Mask In Webkinz Clothing Machine?
- Can You Dance In The Pokemon Game Platinum Is It Possible?
- How To Find The Blue And Green Stone On Pokemon Diamond?
- How To Hack A Meez Without Tricking The Person?
- How Do You Get The Legendary Pokemon In Turn Back Cave?
- Why Define All The Methods Declared In The Interface In Java?
- Why Do We Use Interface In Java ?
- What Is The Benefit Of Interface In Java?
- Why Interface Is Important In Java?
- When Should You Use An Abstract Class And When Should You Use An Interface In Java?
- What Is The Use Of A Marker Interface Even It Doesn't Have Methods In Core Java?
- Can I Define Nested Interface?
- How To Define Stack Data Type In Java?
- Can You Define A Final Variable Without Supplying Its Value In Java Language?
- What Is Interface?

New Comment - Comments are editable for 5 min.