NoImplicitWidening
DRAFT

Misconception:

An explicit cast is required to store a value of a smaller type such as short, byte into a variable of a bigger type such as int.

Incorrect

Smaller types are never automatically converted into bigger ones without an explicit cast

Correct

Smaller types can be automatically converted into bigger ones even without an explicit cast

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.