float usually 4
double usually 8
long is 8 but integer, unlike double
string is a pointer to a memory address containing array of chars, so it doesn't have a fixed size
and a char is usually 1, but i think its 2 in java
In Java, you can use either a float or a double
four
about eight bits, which is equal to one byte
double or float
It means that you can only store values like Integer, String etc in a Vector and not values like int, float etc. int, float, double etc are primitive data types. collections by their default behavior can hold only objects and not primitives.
how many bytes are there in a 64-bit machine? Another Answer: It takes 8 bytes to store a 64 bit number.
A system with a capacity of 232 bytes can store 4,294,967,296 bytes of data.
how many bytes are there in a 64-bit machine? Another Answer: It takes 8 bytes to store a 64 bit number.
61440 Mega Bytes(MB) that is 62914560 Kilo bytes(KB) that is 64424509440 BYTES....- Mayank
32767 is the maximum value that can be stored in two bytes.
Different computer languages use different amounts of memory to store integers. For example, C++ uses a minimum of 4 bytes, Java a min of 8 bytes. A long integer is one which is requires more bytes than the standard amount. When the storage requirement gets to twice the standard amount, the number becomes a double integer.
Floating point types are used to represent fractional numbers. In both C and Java the names for these types are float and double. double offers greater precision than float.