What is Data Type in Java?
What is Data Types in Java?
Data is the most important thing in any programming language. Almost everything in a program revolves around data. A data type is a collection of variables that share the same properties. The concept of Data types in Java is used to categorize the variables based on their characteristics and behaviour.
Java is the most popular object-oriented programming (OOP) language for building applications that run from simple desktop applets to complex web-based enterprise solutions like Applets and servlets to standalone/networked apps like J2ME, MIDP, JSE, etc.
Data types are classified in two categories:
Primitive Data types: The primitive data types include Boolean, char, byte, short, int, long, float and double.
Non-primitive Data types: The non-primitive data types include Classes, Interfaces, and Arrays.
The Java programming language also supports a set of data types used in defining variables, constants, fields, methods, etc. Along with their associated operators and expressions, they are known as data types in Java.
Source: LearnVern.com
Also Read: Identifiers in Java
Register for Free Core Java Tutorial in Hindi
Comments
Post a Comment