Implicit and Explicit type conversion in java | typecasting in java | Tech With Code

Hi friends...
Today we will know everything about type conversion or typecasting in java. typeCasting is very important when you are deaing with different type of data.so lets begin

What is type casting or type conversion?

Type Casting is the process of converting one data type to another data type.

There are two types of type-conversion

  1. Implicit conversion
  2. Explicit conversion

1.Implicit Conversion:-

This is performed by the compiler itself

whenever we perform some calculations on more than one type of data simultaneously, the compiler converts all the datatype to the largest datatype.

for example
Implicit and Explicit type conversion in java  typecasting in java  Tech With Code

2.Explicit Conversion:-




Conversion table for all type of data:-

You might be thinking that which data type can be converted into which datatype. so here is the table which help you out to understand this.


Final Word:-

In this article, We have shown you about the "Implicit and Explicit type conversion in java".We hope you like it

If you have done this by a different approach or you have implemented something in any language please comment down below and share your code with us.we will publish that with your name.

If This post helps you a little bit then please share this post with your friends. For more Computer and programming Related Tips and tricks, please

Follow us on Instagram
Follow us on Facebook
Subscribe us on Youtube
Follow us on Pinterest

Don't forget to share how you like this Content in the comment below. If you have any doubt or suggestion then please write in the comment section below, we will love to hear from you.

                               Thank you.

                                        ( नमस्ते )

                                     🙏



No comments:

Powered by Blogger.