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.
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
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.
32767 is the maximum value that can be stored in two bytes.
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.
4 - one for each character. However, depending on the computer language being used, there is some "overhead" - for example, with "C", the end of a text string is indicated with a null character, so "Bill" would need 5 bytes. Other languages precede strings with their length, the length taking 2, 4 or 8 bytes.