Getting Started with Java
This is a 100% free course, but we need you to first join or login to watch this video.Alright, join or login here.
This video shows you how to perform typecasting in Java. There are two types of type conversion in Java known as explicit typecasting and implicit typecasting. Implicit typecasting is when you try to fit a smaller number inside a bigger data type whereas explicit typecasting is where you add the cast operator to acknowledge the fact that you are ready to lose data while trying to store a larger number inside a smaller data type.