answersLogoWhite

0

  • boolean - 1 bit (1/8 bytes) - The actual storage requires for a boolean type is not defined for Java implementations.
  • byte - 1 byte
  • short - 2 bytes
  • int/char - 4 bytes
  • long - 8 bytes
  • float - 4 bytes
  • double - 8 bytes
User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Which numeric data type has storage capacity of 3 bytes?

For Microsoft SQL Server there are no numeric values that consume 3 bytes. The numeric data types, their value range, and byte consumption as we follows: Data type Range Storage bigint -2^63 (-9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807) 8 Bytes int -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647) 4 Bytes smallint -2^15 (-32,768) to 2^15-1 (32,767) 2 Bytes tinyint 0 to 255 1 Byte


What are the 2 types of data allowed in QBASIC?

the two types of data used in Qbasic is numeric data and alpha numeric data.


What are differences between data types numeric and non numeric?

Numeric data are data that can be quantify. i.e age, e.t.c While Non-numeric data are data that cannot be quantify but can be categorise. Such as colour, name e.t.c


What are the four most common data types?

Common data types vary depending on the hardware, the application and numerous other factors. Therefore there can be no definitive list of the most common data types. Below are a few that are frequently found in a variety of applications: Text or string data Integer values, frequently 2, 4 or 8 bytes long Floating point numeric data, usually several bytes long Boolean data (i.e. true or false) Byte (a single byte that holds data defined by the application) Word (two bytes holding data defined by the application) There are many more data types not listed.


Variables as object in java?

There are two main categories of variables in Java. They are primitive and non primitive. Primitive data types are the basic data types like int, float, char etc. These are not objects. The other non primitive data types are all types of Java Objects. Example: String, ArrayList etc.


How many bytes in an address of an int variable?

32 bits or 4 bytes and an int is not an address, it is a primitive so it directly access the data without a reference.


Is array a primitive data structure?

No, it's not. But it can be based on primitive data types (int, char, long, double and so on).


Define and give three examples of primitive data types?

A primitive variable can be one of eight types: char, boolean, byte, short, int, long, double, or float. Once a primitive has been declared, its primitive type can never change, although in most cases its value can change. they are used to store values like name, age, salary etc.


Only numeric data types can be added and subtracted in sql?

true


How many simple data types are there?

There are a total of 8 simple or primitive data types in Java. They are:byteshortintfloatdoublebooleanlong andString


Functions of primitive data types?

defines the value of a cell


What primitive data types can normally be represented and processed by a CPU?

The primitive data types that can normally be represented and processed by a CPU are an integer, real number, character, Boolean, and memory address