answersLogoWhite

0

Can you create an empty interface with no definitions?

Updated: 8/18/2019
User Avatar

Wiki User

14y ago

Best Answer

Yes.

This is a valid interface definition in Java:

interface Useless {}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you create an empty interface with no definitions?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you create a constructor for an interface in java?

NO, we cannot create a contructor for an interface in java.


Can you create an object of interface in java?

maybe


Can a class write inside an interface?

Yes, you can create a static class inside an interface, but it is normally not a good idea.


Does interface contains classes or not?

While not very common an interface in Java can contain a class. Most interface definitions strictly provide an interface and don't include inner classes.An example is the java.text.AttributedCharacterIteratorinterface found in the J2SE API which includes a public static inner class Attribute. The inner class is accessed externally as AttributedCharacterIterator.Attribute.


List all system call interface?

The system call interface defines all the services of the operating system to the programs. The basis of the different variants of the UNIX operating system is different system call interface. SVID (System V interface definitions ) POSIX standard (IEEE) POSIX 1003.4 is API (Application Program Interface) for the real time systems. www.etherlook.com


What is difference between create and procreate?

By definition, there is no difference. A dictionary will mention as one of its definitions "to create" under defining "procreate".


What are the functions of an interface in Java?

To create an abstraction or a blueprint for a class to implement later.


How do you create an interface?

by declaring in the header of the class: public/private interface [interfaceName] and do not write any method body(i.e. public void dance();)


What is markable interface in java?

The Interface which doesn't have any declarations of methods are called the markable interface (or marker interface)They are named marker interfaces, because their only purpose is to mark special classes.Example:In the Java API there is the interface Cloneable. Since Object already has the method clone() the Cloneable Interface is empty and is only used to mark classes, which objects are allowed to clone.There are Three marker interfaces that are Serializable,Remote and Cloneable.


What command would you use to create an empty text file in Linux?

#Touch newfile Will make an empty newfile


Does excel automatically create an empty row in a table?

YES


What is revision of ileostomy?

It is to create an opening in the abdomen to empty the small intestine