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
How do I compare two strings in word in java?
What is difference between == and === in js?
What are basic keywords?
What are JVM.JRE, J2EE, JNI?
Can constructor be static or final?
How many characters is 2 bytes?
What do you understand by classes in java?
What are the important methods of java exception class?
Can we force garbage collector to run ?
What is size of int in java?
How java uses the string and stringbuffer classes?
What is an i/o filter?
What are the methods of object class ?
What do you mean by an object in java?
Does substring create a new object?