Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Java (http://siteownersforums.com/forumdisplay.php?f=12)
-   -   What is Typecasting ? (http://siteownersforums.com/showthread.php?t=175475)

Shivangi Panwar 07-29-2016 11:14 PM

What is Typecasting ?
 
What is Typecasting ?

Kiara 08-02-2016 12:48 AM

The process of converting one data type to another is called Casting. It is used when a function returns a data of type in a different form then we need to perform an operation.

MuhammadSufyan 08-02-2016 12:51 AM

Type casting is a way to convert a variable from one data type to another data type. For example, if you want to store a 'long' value into a simple integer then you can type cast 'long' to 'int'. You can convert the values from one type to another explicitly using the cast operator as follows

Aashi 08-03-2016 03:00 AM

Type casting is a process of converting one type to another. You can convert the values from one type to another explicitly using the cast operator.

addisoncave 08-29-2016 02:41 AM

The process of changing data of one datatype in to different datatype is known as type casting. in some cases we need to change to int variable to float when we've to add it with a float variable to get a float variable. The Compiler automatically type cast the variable when something like this happen in Java.


All times are GMT -7. The time now is 05:43 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.