Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

What is boxing?

3 like 0 dislike
What is boxing? anybody can tell me about boxing
asked 1 year ago by marck_don (191,010 points)

1 Answer

1 like 0 dislike
 
Best answer
Boxing is an implicit conversion of a value type to the type object
int i = 123; // A value type
Object box = i // Boxing
Unboxing is an explicit conversion from the type object to a value type
int i = 123; // A value type object box = i; // Boxing
int j = (int)box; // Unboxing
answered 1 year ago by daneim (127,080 points)

Related questions

2 like 0 dislike
1 answer
2 like 0 dislike
1 answer
asked 1 year ago by daneim (127,080 points)
2 like 0 dislike
1 answer
asked 1 year ago by daneim (127,080 points)
2 like 0 dislike
1 answer
3 like 0 dislike
1 answer
asked 1 year ago by daneim (127,080 points)