03 JAVA Understanding Data Types in Java

Veröffentlicht am: 19 Juni 2021
auf dem Kanal: 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;


Auf dieser Seite können Sie das Online-Video 03 JAVA Understanding Data Types in Java mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer to expertize 19 Juni 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 16 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!