Operations in our applications will commonly involve multiple data types. Because of that, we must deal with type conversions. Now there are implicit type conversions, and those are type conversions that are performed automatically by the compiler. To see a simple example of that, we look at something like here we have an integer iVal that we've assigned the value 50. If I then say long lVal equals iVal, the compiler must convert that 32 ‑ bit integer iVal into a 64 ‑ bit integer as it's stored into lVal. And there are also explicit type conversions, and these are conversions that I explicitly perform in my code and I do that using a cast operator. We see here if I had that long lVal = 50 now, so I'm now assigning a 64 ‑ bit integer the value of 50, if I want to assign that into this iVal, a 32 ‑ bit integer, I have to explicitly cast it. I must tell part of that I want to go from that 64 ‑ bit integer into a 32 ‑ bit integer. And I do that by using the type I want to con...
You can bag all coding skills from HERE for absolutely nothing