How to do type casting in java programming



How to do type casting  in java Programming .

Theory :Converting on data type to another data type is called data type casting . If I want to convert from a type of data type to another type of data type. First, I need to keep the values ​​in the variable of any data type. In the data type that I want to convert, the value of the next variable must be written in the first bracket that data type. Then we have to print the variables.


Source code:   

                       


























No comments

Powered by Blogger.