RUVIDEO
Поделитесь видео 🙏

CP1344: PROGRAMMING IN JAVA Lecture -9- Data Types in Java -BCA -s3.

Data Types in Java
A data type is an attribute of a variable which tells the compiler or interpreter how the programmer intends to use the variable. It defines the operations that can be done on the data and what type of values can be stored.
Every variable in Java has a data type. Data types specify the size and type of values that can be stored,
Java language is rich in its data types. The variety of data types available allow the programmer to
select the type appropriate to the needs of the application.



Primitive types are also called intrinsic or built-in types.
Non Primitive types are also known as reference types or Derived types
Integer Types
Integer types can hold whole numbers. The size of the values that can be stored depends on the integer data type that we choose. Java supports four types of integers they are byte, short, int, and long. Java does not support the concept of unsigned types and
therefore all Java values are signed meaning they can be positive or negative.
Floating Point Types
Integer types can hold only whole numbers and therefore another type known as floating point type is used to hold numbers containing fractional parts such as 27.59 (known as floating point constants). There are two kinds of floating point storage in Java The float type values are single-precision numbers while the double types present double-precision numbers.
Floating point numbers are treated as double-precision quantities. To force them to be in single-precision mode, we must append f or F to the numbers,
Example:
1.23f
7, 56923e5F

Floating point data types support a special value known as Not-a-Number (NaN). NaN is used to represent the result of operations such as dividing zero by zero, where an actual number is not produced. Most operations that have NaN as an operand will produce NaN as a result.
Character Type
In order to store character constants in memory, Java provides a character data type called char. The char type assumes a size of 2 bytes but, basically, it can hold only a single character
Boolean Type
Boolean type is used when we want to test a particular condition during the execution of the program.
There are only two values that a boolean type can take: true or false. Boolean type is denoted by the
keyword boolean and uses only one bit of storage.
Character Type
In order to store character constants in memory, Java provides a character data type called char. The char type assumes a size of 2 bytes but, basically, it can hold only a single character
Boolean Type
Boolean type is used when we want to test a particular condition during the execution of the program.
There are only two values that a boolean type can take: true or false. Boolean type is denoted by the
keyword boolean and uses only one bit of storage.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «CP1344: PROGRAMMING IN JAVA Lecture -9- Data Types in Java -BCA -s3.», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.