Create your account

Already have an account? Login here

Note: By joining, you will receive periodic emails from Coursetro. You can unsubscribe from these emails.

Create account

11. Typecasting Explained

Getting Started with Java

Woah, wait a second..

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 illustrates how a value belonging to a data type with smaller size requirements such as an int can easily fit inside a variable of larger size such as long. The reverse however may cause data loss and therefore Java supports an explicit type casting where you write the type of the target you desire like (target) before the value.

Course Cirriculum