top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is boxing?

+1 vote
213 views
What is boxing?
posted Dec 1, 2014 by Roshan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

• When Value type is explicitly converted into reference type is called as boxing.
• The reverse process is known as unboxing, when reference type is explicitly converted into value type.
• In boxing process, the Values of variable is stored in Stack is converted in an object reference is stored in heap.
• If the recipient reference type is equivalent to the unboxed type, then the value is copied to the heap.
• Unboxing called the vice versa process of boxing.

answer Dec 1, 2014 by Manikandan J
...