Type Conversion in Java

This article explains the basics of type conversion in Java, as well as potential problems to be aware of.

Table of contents:

TypecastingImplicit typecastingExplicit typecastingType conversion with methodsType conversion to StringType conversion from StringTypecasting

In Java, data type conversion on the language level is called typecasting, it can be done manually by adding (name-of-type) in parenthesis before the expression. For example, converting integer data type to the double...

 •  0 comments  •  flag
Share on Twitter
Published on April 23, 2022 13:20
No comments have been added yet.