03 JAVA Understanding Data Types in Java

Publié le: 19 juin 2021
sur la chaîne: to expertize
16
2

Types, Variables:

Java is a strongly typed 32 bit language. Every variable and constant has a type, as does every expression that evaluates to a value.

Java has a built in library that defines a set of built-in numeric types (primitive) and more complex types that represent a wide variety of logical constructs, such as the file system, network connections, collections and arrays of objects, and dates (None-primitive).

A typical Java program uses types from the class library and user-defined types that model the concepts that are specific to the program's problem domain.

Data types in Java is mainly divided into three categories:

Value Data Types:
The value types directly contain data. Some examples are int, char, and float, which stores numbers, alphabets, and floating point numbers, respectively. When you declare an int type, the system allocates memory to store the value.

Reference Data Types:
The reference types do not contain the actual data stored in a variable, but they contain a reference to the variables.

A variable is nothing but a name given to a storage area that our programs can manipulate.

You can initialize a variable at the time of definition as: int i = 100;


Sur cette page du site, vous pouvez voir la vidéo en ligne 03 JAVA Understanding Data Types in Java durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur to expertize 19 juin 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 16 fois et il a aimé 2 téléspectateurs. Bon visionnage!