what are class,constructor and primitive data types?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ravikiran
class is a template for members and methods to be places
constructor is used to initialize the instance variables.
primitive datatypes are the memory holders for diffrent
type of data to hold
| Is This Answer Correct ? | 3 Yes | 1 No |
What is return data type?
Explain hashset and its features?
What is number data type in java?
Explain the difference between arraylist and linkedlist in java?
What are "methods" and "fields"?
when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.
Difference between object instantiation and construction ?
Explain the difference between call by refrence and call by value?
Can java object be locked down for exclusive use by a given thread?
What is sortedmap in java?
What about features of local inner class?
what is meant by Garbage collection?