answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many bytes does float double long string and char store?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are two Java primitive types store floating-point numbers?

In Java, you can use either a float or a double


How many bytes are required to store an float in ADA?

four


How many bytes are required to store a character string?

about eight bits, which is equal to one byte


What data type is used to store dollar amounts?

double or float


What do you mean by vectors only hold objects not primitive data types?

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 used 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.


How many bytes are used 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.


How many bytes of data can a 60 gb hard drive store?

61440 Mega Bytes(MB) that is 62914560 Kilo bytes(KB) that is 64424509440 BYTES....- Mayank


What do you mean by long integer and double integer?

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.


How many bytes are needed to store 32767?

32767 is the maximum value that can be stored in two bytes.


Which numeric type field will you choose to store fractional values?

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.


How many bytes are required to store the name Bill?

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.