answersLogoWhite

0

An interface can only have abstract methods or constants in it. A class can have both that and everything else in Java.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What was the major difference between early Windows and Macintosh operating systems?

The command line interface and the graphical user interface.


What is the major difference between DOS and windows OS?

Windows has a graphical interface while DOS is a command line interface.


What is the major difference in class and interface in c?

The implementation detail. Classes may provide a default implementation, interfaces provide only the method signatures


Difference between class and interface in java?

A class is a data type. An interface consists of the private, protected and public members of a class, allowing consumers of the class to interact with the class representation in a controlled manner. The private interface is only accessible to the class itself and to friends of the class. The protected interface is similar to the private interface but is also accessible to derivatives of the class. The public interface is fully accessible. The private and protected interfaces are intended purely for use by the class implementers while the public interface is intended for use by both consumers and implementers.


What is the major difference between public and private access method in computer programming?

public means this can be accessed from any class private means this can be accessed only from the current class


What is a major difference between the xia and shang dynasties?

The major difference is by sues


A major difference between Calvinism and Lutheranism relates to?

The major difference between the two relates to the emphasis on predestination.


What was the Main use of sheep by early colonist in US?

Describe the major difference between sheep's and goats


What is the major difference between vertebrates and non-vertebrates?

The major difference between vertebrates and invertebrates is that vertebrates have a back bone and invertebrates don't


What is the difference between gtp and gt?

The major difference is that the GTP is supercharged.


What is a major significant difference between the sun and Jupiter?

The difference in mass


What was a major economical difference between the north and south?

the major economical difference between the north and the south is the north was based on manufacturing while south was agriculutural