Java Data Types and Variables (Java Fundamental): Lecture 2 Part 1

preview_player
Показать описание
Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in the memory.
Based on the data type of a variable, the operating system allocates memory and decides what can be stored in the reserved memory. Therefore, by assigning different data types to variables, you can store integers, decimals, or characters in these variables.
There are two data types available in Java −
Primitive Data Types
Reference/Object Data Types
Рекомендации по теме
visit shbcf.ru