When to use ?
Deal all,
Please tell me that when (the particular situation) the boxing and unboxing concept is used? Although I know the boxing and undoxing.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
nagabhushan hegdePosted Mar 8, 2006, 10:31 AM
Ok. Coming to the topic, boxing is nothing but implicit conversion of data types. It happens in compile time and we do not worry much about it. Unboxing is a concept where in we explicitly cast a variable of some other data type to our desired type. This also happens during compile time.
Normally there is no situation where in you search for these kind of situations. It's by default ( Boxing). and Unboxing as said concept name given to type cast for variables.
Thnx,
nagabhushan hegdePosted Mar 8, 2006, 10:31 AM
Ok. Coming to the topic, boxing is nothing but implicit conversion of data types. It happens in compile time and we do not worry much about it. Unboxing is a concept where in we explicitly cast a variable of some other data type to our desired type. This also happens during compile time.
Normally there is no situation where in you search for these kind of situations. It's by default ( Boxing). and Unboxing as said concept name given to type cast for variables.
Thnx,