Forums Register Login

abt Cast

+Pie Number of slices to send: Send
When i cast any object to other class at that time in memory whether one object is created or two?
+Pie Number of slices to send: Send
"Yogesh G",

Please check your private messages.
+Pie Number of slices to send: Send
 

Originally posted by Yogesh G:
When i cast any object to other class at that time in memory whether one object is created or two?



You cannot cast an object. You can cast an object reference. Casting does not create any objects at all. Neither does it change any objects at all.

While I'm here, "abt" isn't a word. Please UseRealWords.
Let me tell you a story about a man named Jed. He made this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 789 times.
Similar Threads
Casting Object[] to String[]
Assign String[][] to a Session Attribute
Getting Session Attribute Value
How to typecast an object which is of unknown class type at runtime?
HFSJ - Page 87 - result.jsp
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:47:08.