#8 Type Conversion in Java
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Related videos
Java 25 is here
Telusko
61.2k views
Docker for Java Developers
Telusko
114.1k views
Java For Programmers in 2 hours
Telusko
180.9k views
Tree Implementation in Java | DSA
Telusko
108.7k views
Insertion Sort Code | DSA
Telusko
65.5k views
Java Database Connectivity | JDBC
Telusko
617.2k views
Java Interview Questions | Macbook Contest
Telusko
46.2k views
#95 Comparator vs Comparable in Java
Telusko
344.2k views
#94 Map in Java
Telusko
169.2k views
#92 ArrayList in Java
Telusko
221.8k views
Top Comments (10)
No one on youtube can match this guys level in Java
Great and helpful video. One thing I want to mention is, while casting from bigger type to smaller type, like int -> byte. the modulo is just one part of the process. lets say, the int value is 245, and we want to store it in byte. so the range of byte is -128 to 127. So the non negative range is, 0 to 127, i.e. 128 values. So what java does is, 245 % 128 = 117. after that it wraps around to the negative side of values, so it will start from -128, and go 117 values. -128 + 117 = -11. And that will be the output if you try to store 245 in a "byte" datatype. This process is called 2's complement wrapping, and is done in case value overflows the variable. Which is true in case of 245 storing in byte.
U & code with Harry are amazing teachers 😅😅
Give definitions about every topic it will be helpful to people to crack the interview pls try if possible?
you really teach good, the concepts, which we need as a engineer just not syntax of any programming language
Your teaching skill is amazing..😊
Awesome, the concepts explained are concise and to the point
Great explanation👍
Sir does this playlist cover all core java concepts..because your explanation was awesome.....
remember that type promotion like the one mentioned at the end only occurs when both the operands are either byte char or short. they get converted to int before operation. bit the same does not hold for: int a = 100_000; long b = a*a; wont store 100_000_00_000;
Unlock the Data Inside
Turn Videos into Knowledge
- Get FREE 10/day: transcripts, summaries, chats
- Chat with videos, export text & PDF
- $1 free API credit for RAG, chatbots & research
Free forever plan • All features unlocked
Top Comments (10)
No one on youtube can match this guys level in Java
Great and helpful video. One thing I want to mention is, while casting from bigger type to smaller type, like int -> byte. the modulo is just one part of the process. lets say, the int value is 245, and we want to store it in byte. so the range of byte is -128 to 127. So the non negative range is, 0 to 127, i.e. 128 values. So what java does is, 245 % 128 = 117. after that it wraps around to the negative side of values, so it will start from -128, and go 117 values. -128 + 117 = -11. And that will be the output if you try to store 245 in a "byte" datatype. This process is called 2's complement wrapping, and is done in case value overflows the variable. Which is true in case of 245 storing in byte.
U & code with Harry are amazing teachers 😅😅
Give definitions about every topic it will be helpful to people to crack the interview pls try if possible?
you really teach good, the concepts, which we need as a engineer just not syntax of any programming language
Your teaching skill is amazing..😊
Awesome, the concepts explained are concise and to the point
Great explanation👍
Sir does this playlist cover all core java concepts..because your explanation was awesome.....
remember that type promotion like the one mentioned at the end only occurs when both the operands are either byte char or short. they get converted to int before operation. bit the same does not hold for: int a = 100_000; long b = a*a; wont store 100_000_00_000;