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 float in java?
What is the difference between throw and throws?
What is the symbol for average?
What are heterogeneous objects?
Why are strings immutable in Java?
Functionality of JVM?
What is abstraction with strong example program? (not a general program)
Can you pass by reference in java?
Can final class have constructor?
There are 2 methods in a class. Both have the same method signature except for return types. Is this overloading or overriding or what is it?
When to use runnable interface vs thread class in java?
Explain how hashmap works?