View Nirupama  Pathak 's Profile
How to define an Interface in Java ?
In Java Interface defines the methods but does not implement them. Interface can include constants. A class that implements the interfaces is bound to implement all the methods defined in Interface.
Emaple of Interface:

public interface sampleInterface {
public void functionOne();

public long CONSTANT_ONE = 1000;
}
Asked by Nirupama Pathak | May 16 2018 | Report this Report abuse
Replies (8)
View Chinmay  Hegde 's Profile
An interface is a reference type in Java. It is similar to class. It is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface. Along with abstract methods, an interface may also contain constants, default methods, static methods, and nested types.

Get the more details visit the :- http://www.cetpainfotech.com/technology/java-training
May 25 2018 | Report this Report abuse
View Shivendu  Chatterjee 's Profile
An interface is a reference type in Java. It is similar to class. It is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface. Along with abstract methods, an interface may also contain constants, default methods, static methods, and nested types.

Get the more details visit the :- http://www.cetpainfotech.com/technology/java-training
May 25 2018 | Report this Report abuse
View Roshan  shah 's Profile
Unless the class that executes the interface is conceptual, every one of the techniques for the interface should be characterized in the class. An interface can contain any number of strategies. An interface is composed in a record with a .java expansion, with the name of the interface coordinating the name of the document.
May 24 2018 | Report this Report abuse
View Khushi   Kumari 's Profile
Unless the class that executes the interface is conceptual, every one of the techniques for the interface should be characterized in the class. An interface can contain any number of strategies. An interface is composed in a record with a .java expansion, with the name of the interface coordinating the name of the document.
May 24 2018 | Report this Report abuse
View Khushi   Kumari 's Profile
Is Iterator a Class or Interface? What is its use?
May 23 2018 | Report this Report abuse
View Diksha  Basu 's Profile
Iterator is an interface which is used to step through the elements of a Collection.
May 23 2018 | Report this Report abuse
View Shivendu  Chatterjee 's Profile
For such type of query and certification you can check the link below

http://www.vskills.in/certification/Certified-Core-Java-Developer
May 23 2018 | Report this Report abuse
View Tanya  Sharma 's Profile
For such type of query and certification you can check the link below

http://www.vskills.in/certification/Certified-Core-Java-Developer
May 23 2018 | Report this Report abuse