Does Java automatically cast?

If the data types are compatible, then Java will perform the conversion automatically known as Automatic Type Conversion, and if not then they need to be cast or converted explicitly .

Leave a Reply

Your email address will not be published. Required fields are marked *

Does Java automatically cast?

If the data types are compatible, then Java will perform the conversion automatically known as Automatic Type Conversion, and if not then they need to be cast or converted explicitly .

Leave a Reply

Your email address will not be published. Required fields are marked *