![]() |
data types
what are the data types in java?
|
The platform independent feature of Java is achieved through bytecode. The eight primitive data types are: byte, short, int, long, float, double, boolean, and char. The java.lang.String class represents character strings
|
A data type in a programming language is a set of data with values having predefined characteristics.
|
8 data types.int(32-bit),short(16-bit),long(64-bit),byte(8-bit),float(32-bit),double(64-bit),char(16-bit),boolean (true or false).
Thank you. |
Data Types are the
char - 1 byte unsigned char- 1 byte int- 2 or 4 byte short - 2 bytes 2 bytes - 4 bytes |
The data types in java are :-
byte, short, int, long, float, double, boolean, char. |
A particular kind of data item, as defined by the values it can take, the programming language used, or the operations that can be performed on it.
|
short, int, long, float, double, boolean, and char are the commonly known data types
|
There are mainly eight data types in Java - int, short, long, byte, float, double, char, and boolean.
|
A data types in Java are int,byte,float,double,char,boolean,long,short.
|
The eight primitive data types are: byte, short, int, long, float, double, boolean, and char.
|
int A 32-bit (4-byte) integer value
short A 16-bit (2-byte) integer value long A 64-bit (8-byte) integer value byte An 8-bit (1-byte) integer value float A 32-bit (4-byte) floating-point value double A 64-bit (8-byte) floating-point value char A 16-bit character using the Unicode encoding scheme boolean A true or false value |
All times are GMT -7. The time now is 12:42 AM. |
Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.