what are class,constructor and primitive data types?

Answer Posted / janet

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.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define an applet in java?

634


How are variables stored in memory?

585


What is the difference between yielding and sleeping in java programming?

591


Can private method static?

475


What is runtime locatable code?

877






Name few java util classes introduced with java 8 ?

512


What is the difference between menuitem and checkboxmenu item?

788


How can the checkbox class be used to create a radio button?

516


Explain covariant method overriding in java.

547


Difference between association, composition and aggregation?

565


What are methods?

563


Explain differences between collection api and stream api?

617


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

565


Can singleton class be cloned?

565


What is use of arraylist in java?

586