java4all@1986 java. Powered by Blogger.

Difference between Enum and Interface?

>> Thursday, May 26, 2011

  • Interface doesnot contain any constructors
  • Enum act as a class and extend java.lang.Enum,but it cannot other class ,but implements any n.o of interfaces.
  • But an interface can extend any n.o Interfaces.
  • Java.lang.Enum is base class of all enum's preesent in java.It is an abstract class,it implements Serializable, comparable Interfaces

0 comments:

Post a Comment

FaceBook Login

HTML/JAVASCRIPT

HTML/JAVASCRIPT

HTML/JAVASCRIPT

HTML/JAVASCRIPT

Total Pageviews

STATCOUNTER

  © Blogger template Simple n' Sweet by Ourblogtemplates.com 2009

Back to TOP