Widening and Narrowing in Java

In Java, assigning one primitive type to another primitive type is possible if they are related primitives Example: We can assign long to int , short to int and float to double etc. Way of assigning one type of primitive to other primitive type is classified as 2 categories 1.Widening(Auto or implicit) 2.Narrowing(Explicit) 1.Widening In […]

Share this article on