Today we will learn Explicit Typecasting in java. While evaluating expressions, the result is automatically updated to larger data type of the operand. But if we store that result in any smaller data type it generates a compile time error, due to which we need to typecast the result.
Launch Your First Android app with our TOP course at 82% OFF (24 hrs ONLY) HERE “Learn How To Design + Code A Complete App From Scratch To Playstore” âž¨ -~-~~-~~~-~~-~- This Java tutorial video talks about typecasting between superclass and subclass objects in Java, A superclass reference variable can refer to subclass objects, however […]
In this video of Kotlin Fundamentals series, we look at how to declare variables. We come across two key words here “var” and “val”. Any variable declared with “var” is mutable and any variable declared with “val” is immutable. This is very important from the point of view of you declare variables in the application […]