answersLogoWhite

0

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

16y ago

What else can I help you with?

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 in a var-char?

In SQL, the storage size of a VARCHAR data type is determined by the length of the string stored in it, plus an additional byte (or two bytes for very large strings) to store the length of the string. Specifically, it uses 1 byte for strings up to 255 characters and 2 bytes for strings longer than 255 characters. Therefore, the total size in bytes for a VARCHAR(n) can be up to n + 1 or n + 2, depending on the length of the data.


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 much data can be stored in a system that has a capacity of 232 bytes?

A system with a capacity of 232 bytes can store 4,294,967,296 bytes of data.


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.


What can hold a number of bytes or characters in a storage medium?

A data structure such as an array or a string can hold a number of bytes or characters in a storage medium. In programming, arrays store multiple values of the same type, while strings specifically hold sequences of characters. Additionally, files on disk or in memory can also serve as storage for bytes and characters, enabling data persistence and retrieval.


How man character's can 8 bytes store?

One byte is made up of 8 bits, and each bit can store 1 character. Therefore, 8 Bytes can store 64 Characters.


How many bytes of data can 32 MB of RAM store?

A stick of 512 megabytes of RAM can hold about 512 megabytes of data. It cannot, however, store it for long because it is volatile and is not designed to store data.


How many bytes are required to store a number in binary?

The number of bytes required to store a number in binary depends on the size of the number and the data type used. For instance, an 8-bit byte can store values from 0 to 255 (or -128 to 127 if signed). Larger numbers require more bytes: a 16-bit integer uses 2 bytes, a 32-bit integer uses 4 bytes, and a 64-bit integer uses 8 bytes. Thus, the number of bytes needed corresponds to the number of bits needed for the binary representation of the number.


How many bytes of storage would be needed to store the word microprocessors?

The word: microprocessors, is 15 characters long, and would need a minimum of 15 bytes to store as ASCII. Some systems may need additional bytes to indicate that text is stored there, or how long the text field is, though.


How many bytes are required to store an unsigned integer range?

4