0
Anonymous
Interface Java can be used for a variety of tasks and commands such as .swf files, Java files, running scripts, as well as website video players for websites.
Wiki User
Chat with our AI personalities
Yes, it is possible to write a keylogger in Java, but you would need to use the Java Native Interface to do so.
yes we can define a variable in an interface in java.
NO, we cannot create a contructor for an interface in java.
Generally, they are used to give additional information about the behaviour of a class.It is just used to "mark" Java classes which support a certain capability . Examples: java.util.RandomAccess java.io.Serializable java.rmi.Remote java.util.EventListner javax.servlet.SingleThreadModel java.lang.Clonable javax.ejb.EnterpriseBean
Java's List interface defines the size() method, which can be used to retrieve the length of a list.
interface is a list of methods which implements that interface
Yes. An interface in essence is a java class and so you can use the term interface class. But, using the term class along with the term interface can cause ambiguity or misunderstandings among novice java developers. So, using the term "Interface" along would suffice to refer to a type of class which is the "Interface"
A tagging interface type in Java is an interface that has not defined methods such as the java.io.Serializable interface.
Runnable interface
Yes. This is a valid interface definition in Java: interface Useless {}
An interface in Java is like an abstract class, but there are no method bodies allowed in it and it has to be declared with the interface keyword. It is Java's way of getting around the Deadly Diamond of Death. Only abstract methods and constants are allowed in it.
interface is just like a class. its contains abstract methods without any implementation and we cant create object for the class. we can only sub classed . used to achieved multiple inheritance in java.