Forums Java Help What are Class, Constructor and Primitive data types

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4057
    Aakanksha
    Participant

    What are Class, Constructor and Primitive data types?

    #11602
    Aakanksha
    Participant

    Class is a template for multiple objects with similar features and it is a blue print for objects. It defines a type of object according to the data the object can hold and the operations the object can perform. 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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.