Explicit conversion casting
short a=2000;
int b;
b = (int) a; // c-like cast notation
b = int (a); // functional notation
Explicit conversion casting
short a=2000;
int b;
b = (int) a; // c-like cast notation
b = int (a); // functional notation
what is explicit casting
/*
Type Casting Types in Java
Java Type Casting is classified into two types.
- Widening Casting (Implicit) – Automatic Type Conversion
- Narrowing Casting (Explicit) – Need Explicit Conversion
source: https://www.tutorialspoint.com/what-are-the-differences-between-widening-casting-implicit-and-narrowing-casting-explicit-in-java
*/
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us