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

Type Casting in Java | Type Conversion and Casting in java | Type Promotion | 6

Type Casting in Java | Type Conversion and Casting in java | Type Promotion | 6ddf

Welcome to Java for Beginners in Hindi tutorials
This Java tutorial for beginners will teach you Java programming from scratch. This complete Java course will help you master all the concepts.
I will upload all the videos of Java from Basic to Advanced. If you are a beginner in Java, this tutorial Java for beginners in Hindi will help you to master Java.

Topics Covered :
1) What is type conversion or type casting ?
2) Types of casting?
a) implicit type casting or automatic type casting or widening type casting
b) explicit type casting or narrowing type casting
3) Error during narrowing type casting?
4)Type promotion when we do operations

Q# 1
What is type conversion or type casting ?
Type casting is when you assign a value of one primitive data type to another type.

e.g : byte b=34; int i=b

Q# 2
Types of casting?
In Java, there are two types of casting:
• Widening Casting (automatically) also known as implicit casting- converting a smaller type to a larger type size

• Narrowing Casting (manually) also known as explicit casting –
converting a larger type to a smaller size type

Q# 3
Error during narrowing type casting?
In narrowing type casting when we convert the value of the larger data type to a smaller type, you get the data loss error.


Q# 4
What is the Type promotion
When we do arithmetic operations on two same data types or different data types, java will promote the smaller data type to the larger data type.

When we perform the operations Then the value may exceed the range of operands and hence the expression value will be promoted.

a. Java automatically promotes each byte, short, or char operand to int when evaluating an expression

b. If one operand is long, float or double the whole expression is promoted to long, float, or double respectively.

int * float = float
int * long= long
int * double= double

type conversion
type casting
type promotion
type casting in java
Type casting java
Type Casting in java
Type conversion and casting in java
type conversion and casting
type conversion and casting in java
Type Conversion and Casting
Datatype in java
implicit casting
implicit casting in java
explicit casting
explicit casting in java
type promotion
type promotion in java
Type Promotion java
casting types in java
types of casting
type of casting in java
codergoodlife

@codergoodlife

#typecasting
#typeconversion
#implicitcasting
#explicitcasting
#typepromotion
#javainhindi
#javatutorial
#javatutorialforbeginners

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Type Casting in Java | Type Conversion and Casting in java | Type Promotion | 6», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

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

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

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