Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (anonymous):

The difference of abstract and interface in java ???

OpenStudy (anonymous):

An abstract class may or may not have an implementation for a method(there can be a few lines of code for a method in a abstract class) but in an interface, the method can have no implementation. An interface contains only method signatures and final static variables.

OpenStudy (anonymous):

and what's the usage of each of them?

OpenStudy (anonymous):

It does not have any specific usage, you may have to use them any time. No such examples are coming to my head right now.

OpenStudy (anonymous):

for example we use interface when we want someone do GUI and someone else do implementations wright?

OpenStudy (anonymous):

*right

OpenStudy (anonymous):

yeah, kind of :)

OpenStudy (anonymous):

thanks :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!