Skip to content

Commit f1887f5

Browse files
author
Ram swaroop
committed
added content
1 parent 38e7c41 commit f1887f5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

_posts/2015-05-14-variables-and-literals.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,4 +249,11 @@ something, we just don't know what that something really is). All we can say for
249249
not the object, but rather a value representing a specific object on the heap. Or `null`. When it is `null`, i.e,
250250
`Button b = null;` you can say that the reference variable `b` is not referring to any object.
251251

252+
### Casting
253+
254+
__Casting__ is a way of converting literal values/objects from one type to another. When the type of variable is
255+
__different__ from the type of literal/object it's holding/referring, you may require __casting__. Casting can be done
256+
by the compiler _(implicit cast)_ or by you _(explicit cast)_.
257+
258+
252259

0 commit comments

Comments
 (0)