difference between enum and final class?

Ads
 

difference between enum and final class?

what is the difference between enum and final class in java?

View Answers

May 29, 2012 at 5:02 PM

The java.lang.Enum is an abstract class, it is the common base class of all Java language enumeration types. The definition of Enum is:

public abstract class Enum>
 extends Object
implements Comparable, Serializable

All enum types implicitly extend java.lang.Enum.

A final class cannot be extended. A final class implicitly has all the methods as final, but not necessarily the data members.

Ads









Related Tutorials/Questions & Answers:
difference between enum and final class?
Difference between struts and JSF
Advertisements
difference between == and === operators?
Difference between 3d and 4d
What is the difference between the >> and >>> operators?
Difference between Timer and Thread?
what is the difference between extends and implements
what is the difference between extends and implements
difference between lock and synchronization
Difference between SCJP Exams
what is the Difference between weblogic and jboss?
what is the difference between pop and oop
difference between hashcode,reference in java
What is the difference between hibernate and spring
What is the difference between $message and $$message?
What is the difference between a constructor and a method?
Difference between http and https
Difference between error and exception ????????
Difference between Struts and Spring
difference between $message and $$message
calculate difference between two dates
difference between prepared statement and statement
mysql difference between two numbers
What is the difference between a JDK and a JVM?
difference between servletconfig and servletcontext in java
difference between wite and writeto in java
What is difference between Path and Classpath?
calculate difference between two time in jsp
DIFFERENCE BETWEEN APPLICATION SERVER AND WEB SERVER
what is the difference between distributed application and web application?
What’s the difference between load() and get()?

Ads