What is the hierarchy of data types in Java
Answers
Answered by
1
Data types in Java
There are majorly two types of languages. First one is Statically typed language where each variable and expression type is already known at compile time.Once a variable is declared to be of a certain data type, it cannot hold values of other data types.Example: C,C++, Java. Other, Dynamically typed languages: These languages can receive different data types over the time. Ruby, Python
Java is statically typed and also a strongly typed language because in Java, each type of data (such as integer, character, hexadecimal, packed decimal, and so forth) is predefined as part of the programming language and all constants or variables defined for a given program must be described with one of the data types.
Java has two categories of data:
Primitive data (e.g., number, character)Object data (programmer created types)
There are majorly two types of languages. First one is Statically typed language where each variable and expression type is already known at compile time.Once a variable is declared to be of a certain data type, it cannot hold values of other data types.Example: C,C++, Java. Other, Dynamically typed languages: These languages can receive different data types over the time. Ruby, Python
Java is statically typed and also a strongly typed language because in Java, each type of data (such as integer, character, hexadecimal, packed decimal, and so forth) is predefined as part of the programming language and all constants or variables defined for a given program must be described with one of the data types.
Java has two categories of data:
Primitive data (e.g., number, character)Object data (programmer created types)
Answered by
9
hey!
the hieracy of data types in java :-
1.byte
2.short
3.int
4.long
5.float
6.double
7.boolean
8.char...
hope u like it
the hieracy of data types in java :-
1.byte
2.short
3.int
4.long
5.float
6.double
7.boolean
8.char...
hope u like it
Similar questions
English,
7 months ago
Computer Science,
7 months ago
Computer Science,
1 year ago
Science,
1 year ago
English,
1 year ago
Math,
1 year ago