What primitive Java types? Howmany are they and what are
their names?
Answers were Sorted based on User's Feedback
Answer / ramesh
primitive type is predefined in java.
byte , int ,short ,long , float , double,boolean and char
are the primitive data types used in java.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / prasanna
They are implicitly defined in Java.There are 8 of them and
they are:
boolean,char,byte,short,int,long,float,double
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
primitive datatypes are the one which will allocate some
memory in the stack.And there are 8 primitive data types
1).byte
2).short
3).int
4).long
5).float
6).double
7).char
8).boolean
| Is This Answer Correct ? | 3 Yes | 0 No |
what is the use of private constructor in core java?
3 Answers OnMobile, Satyam, Yash Technologies,
How do you get length in java?
What is thread priority?
why java is better then .net?
What is fundamental datatype?
What is a linkedhashmap java?
what is main purpose of interface?
2 Answers Accenture, HCL, NIIT,
What is a type parameter in java?
What will happen inside init() in servlet. my interviewer asked servlet lifecycle. i said "once servlet is loaded in to memory init() will be called which performs servlet initialization " . Again interview asked what values will be initialized . what is difference between init() and init(ServletConfig config).
2 Answers Infinite Computer Solutions, TCS,
what is the difference between Cpp And Java
What is equlas() and hashcode() contract in java? Where does it used?
What is difference between an object and a class?