Hi to everybody. Lastweek i had taken an interview on c#.
They ask what is boxing & unboxing, Masking.Please tell the
answer and it is useful for me.

Answer Posted / raj

Boxing: Implicitly converting value type to object type

Eg: int i=1;
object obj=i;

UnBoxing:Explicitly Converting object type to value type

Eg: int j=(int) obj;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the predicate of a sentence?

491


What is an object and a class?

556


Can delegates be used as callbacks?

496


What is interpolation in programming?

488


What is cosole application?

575






Does c# replace c++?

626


What is predicate builder?

479


What's different between c# and c/c++?

535


Explain the different types of delegates used in c#.

514


Distinguish between finally and finalize blocks?

515


Could you explain the difference between func vs action vs predicate?

459


How to sort an int array in c#?

535


In .NET how can you solve the DLL Hell problem?

671


Describe the types of comments in c#?

509


Can hashtable have duplicate keys in c#?

478