WHAT ARE CLASS, CONSTRUCTOR AND PRIMITIVE DATA TYPES?

Pushpendra Singh

Total Post:240

Points:1200
Posted by  Pushpendra Singh
Java 
 1563  View(s)
Ratings:
Rate this:
  1. Pushpendra Singh

    Post:240

    Points:1200
    What are Class, Constructor and Primitive data types?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!