+ 2
What is an interface in java?
5 Respuestas
+ 3
Interfaces are quite advanced stuff. I don't know much about it, I only know that it's an abstract class with abstract methods in it. Sorry. It's explained in the Java Course, in "More on classes" chapter.
+ 2
hehehe..np @Baptiste
+ 2
The interface in java is a mechanism to achieve abstraction. There can be only abstract methods in the java interface not method body. It is used to achieve abstraction and multiple inheritance in Java.
0
interface is same like but u can only declare the method within interface,,though after java8 u can define also...u have to implement ur method in a class
0
Interfaces are purely abstract. You can't define a constructor within that. Interfaces are mainly used for coupling stuffs. For loose coupling, interfaces are used.