answersLogoWhite

0


Best Answer

Java has a total of 8 primitive data types

# byte: The byte data type is an 8-bit signed two's complement integer. It has a minimum value of -128 and a maximum value of 127 (inclusive). # short: The short data type is a 16-bit signed two's complement integer. It has a minimum value of -32,768 and a maximum value of 32,767 (inclusive) # int: The int data type is a 32-bit signed two's complement integer. It has a minimum value of -2,147,483,648 and a maximum value of 2,147,483,647 (inclusive). # long: The long data type is a 64-bit signed two's complement integer. It has a minimum value of -9,223,372,036,854,775,808 and a maximum value of 9,223,372,036,854,775,807 (inclusive). # float: The float data type is a single-precision 32-bit IEEE 754 floating point. # double: The double data type is a double-precision 64-bit IEEE 754 floating point. # boolean: The boolean data type has only two possible values: true and false. # char: The char data type is a single 16-bit Unicode character. It has a minimum value of '\u0000' (or 0) and a maximum value of '\uffff' (or 65,535 inclusive). In addition to the eight primitive data types listed above, the Java programming language also provides special support for character strings via the java.lang.String class. Enclosing your character string within double quotes will automatically create a new String object;

For ex: String name = "Rocky"; would create a new String object of name "name" and holding an initial value "Rocky"

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the three basic types of data?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Describe the four basic data types in c?

Describe the basic data types in C Describe the basic data types in C


Which three basic parts are common to all frame types supported by the data link layer?

header trailer Data


What are the three types of master data discussed in this exercise?

The three types of master data discussed are reference data and enterprise data. Lastly, there is also market master data.


Differrent data types in Visual Basic?

many


What are the basic parts of programming?

Data types and functions.


What are the three types of data flow?

the three types of data flow are: simplex,half duplex and full duplex


What are three basic map types?

The three basic map types are:- Quantitative maps Qualitative maps Thematic maps


What are the basic data processing principles?

There are three basic principles of data processing. These are ETL that is extraction, transformations and loading.


There are how many types of data's?

three


What is the difference between class data type and basic type in c plus plus .How can someone know which one is class type and which one is basic type.?

Basic types (primitive data types) have no methods associated with them.


What are the basic types of sleeves in garment making?

THE THREE BASIC TYPES OF SLEEVES ARE : KIMONO SLEEVE RAGLAN SLEEVE SET- IN SLEEVE THE THREE BASIC TYPES OF SLEEVES ARE : KIMONO SLEEVE RAGLAN SLEEVE SET- IN SLEEVE THE THREE BASIC TYPES OF SLEEVES ARE : KIMONO SLEEVE RAGLAN SLEEVE SET- IN SLEEVE


What are the three basic types of water-cooled systems?

The three types are internal, external and integrated