answersLogoWhite

0


Best Answer

Java Data TypesJava is a powerful language that gives us options to have data in different forms. We have several data types that we can use for our needs. The basic data types that java offers us are termed as Primitive Data Types. Though all programming languages have varied data types java offers us with a variety of data types that are much powerful and simplified to use when compared to other languages.

The Java programming language is strongly-typed, which means that all variables must first be declared before they can be used. This involves stating the variable's type and name.

int age = 10;

The above statement tells the java compiler that a field named "age" which holds numeric data and having an initial value of 10 is declared. A variable's data type determines the values it may contain, plus the operations that may be performed on it. In addition to int, the Java programming language supports seven other primitive data types. A primitive type is predefined by the language and is named by a reserved keyword. Primitive values do not share state with other primitive values. The eight primitive data types supported by the Java programming language are: byte, short, int, float, double, long, char and boolean

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the Different types of data type?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What does data type mean in I.C.T.?

Data is stored in databases. To make the database more efficient, different types of data are usually classified as a certain 'data type'.


Innumerate the different types of data type?

eight primitive data types are: -boolean -char -byte -short -int -long -double -float


What are the Access data types and how they are used?

In Access and in databases in general each field in a database table is of a certain data type. The data type determines what type of data a field can hold. A field of the text data type can hold text, a field of the number data type can hold numbers and a field of the data/time data type can hold date and time values.Access actively checks what type of data is entered into a field and Access will disallow the entry of data into a field that doesn't conform to the field's data type. Access won't allow you to put text into a field of the Number data type, for example.So, data types are a way to restrict the entry of data into a field. Internally, the database uses different strategies for the storage and retrieval of different data types.


Is built-in data-type are abstract data-types in java?

All built-in data types are not abstract data types.


What are 3 different data types?

According to Wikipedia,"In computer science and computer programming, a data type or simply type is a classification identifying one of various types of data, such as real-valued, integer or Boolean, that determines the possible values for that type; the operations that can be done on values of that type; the meaning of the data; and the way values of that type can be stored.""Almost all programming languages explicitly include the notion of data type, though different languages may use different terminology. Common data types may include:integers,booleans,characters,floating-point numbers,alphanumeric strings."

Related questions

What type of graph is appropriate for a set of data?

Different types of graphs are appropriate for different types of data.


What does data type mean in I.C.T.?

Data is stored in databases. To make the database more efficient, different types of data are usually classified as a certain 'data type'.


Which is a type of data?

There are several different types of data. Some include qualitative and quantitative. Qualitative is data that is not numeric and quantitative data is numerical.


Innumerate the different types of data type?

eight primitive data types are: -boolean -char -byte -short -int -long -double -float


What are the Access data types and how they are used?

In Access and in databases in general each field in a database table is of a certain data type. The data type determines what type of data a field can hold. A field of the text data type can hold text, a field of the number data type can hold numbers and a field of the data/time data type can hold date and time values.Access actively checks what type of data is entered into a field and Access will disallow the entry of data into a field that doesn't conform to the field's data type. Access won't allow you to put text into a field of the Number data type, for example.So, data types are a way to restrict the entry of data into a field. Internally, the database uses different strategies for the storage and retrieval of different data types.


What does data storage mean?

Data storage is the term for saving data by a computer or device. Different types of data storage work differently in a computing environment. Data storage is used to store data such as documented files, databases and for personal uses such as music and photos. Different types of data are stored in different places, depending on the type of data it is.


Is built-in data-type are abstract data-types in java?

All built-in data types are not abstract data types.


What are 3 different data types?

According to Wikipedia,"In computer science and computer programming, a data type or simply type is a classification identifying one of various types of data, such as real-valued, integer or Boolean, that determines the possible values for that type; the operations that can be done on values of that type; the meaning of the data; and the way values of that type can be stored.""Almost all programming languages explicitly include the notion of data type, though different languages may use different terminology. Common data types may include:integers,booleans,characters,floating-point numbers,alphanumeric strings."


What is a database field format?

they can contain different types of data. they can contain different types of data.


What are the different data types?

Theres two types of data, Continuous and discontinuous data.


What data types are?

According to Wikipedia,"In computer science and computer programming, a data type or simply type is a classification identifying one of various types of data, such as real-valued, integer or Boolean, that determines the possible values for that type; the operations that can be done on values of that type; the meaning of the data; and the way values of that type can be stored.""Almost all programming languages explicitly include the notion of data type, though different languages may use different terminology. Common data types may include:integers,booleans,characters,floating-point numbers,alphanumeric strings."


What is default values of different primitive data types?

in integral data types default value=0 in decimal type default value is 0.0 in boolean default value is fa