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
What are thread safe functions?
Is array size fixed in java?
Which sorting is used in arrays sort in java?
Can we define a package statement after the import statement in java?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
What does microservices mean?
Explain about wait() method?
What is meant by string is immutable?
How do you escape a string?
Define an enumeration?
How many bytes are there?
What is field name?
What is meant by main method?
What happens when a thread cannot acquire a lock on an object in java programming?
How do you use compareto method?