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

How do I compare two strings in word in java?

541


What is difference between == and === in js?

547


What are basic keywords?

557


What are JVM.JRE, J2EE, JNI?

693


Can constructor be static or final?

650






How many characters is 2 bytes?

531


What do you understand by classes in java?

557


What are the important methods of java exception class?

569


Can we force garbage collector to run ?

572


What is size of int in java?

543


How java uses the string and stringbuffer classes?

515


What is an i/o filter?

565


What are the methods of object class ?

563


What do you mean by an object in java?

630


Does substring create a new object?

530