What are data types and how many data types are in Java Language?

1.2K    Asked by MintaAnkney in QA Testing , Asked on Nov 17, 2019
Answered by Minta Ankney

Information types indicate the various sizes and qualities that can be put away in the variable. There are two kinds of data types in Java

Primitive data types: These are predefined data types in Java. There are eight different primitive data types - Boolean, char, byte, short, int, long, float, double. These are reserved keywords.

Non-Primitive data types: This is also known as user-defined data types or reference data types. The programmers create these. They refer to an object.

image


Your Answer

Interviews

Parent Categories