Home > DeveloperSection > Interviews > What are Class, Constructor and Primitive data types?

Posted on    October-25-2010 12:00 AM

 Java Java 
Ratings:
 1 Answer(s)
  1137  View(s)
Rate this:

Pushpendra Singh

Total Post:241

Points:1205
Posted on    November-08-2010 1:00 AM

A class is a template or prototype that defines the variables and the methods common to all objects of a certain kind.

Constructor is a special kind of method that
determines how an object is initialized when created.

Primitive data types are 8 types and they are:
byte,short,int,long,float,double,boolean,char.


Don't want to miss updates? Please click the below button!

Follow MindStick