will this code works fine? or will it gives error?
Object obj=5;
int i=6;
i=i+obj;
Answer Posted / naren
object obj=5 this is boxing
int i=6 this is initialization of variable.
i=i+obj; here we can't sum the value type and reference
type.
so,it gives the error.
Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
What is an asynchronous controller in asp.net mvc?
What are scaffold templates in mvc?
What are the advantages of asp.net mvc?
Explain the types of Scaffoldings.
Why is entity framework used?
What is .net architecture?
How do I install .net framework?
What is the purpose of a web form?
What is the advantage of using asp.net routing?
What is meant by domain model?
What is difference between viewbag and viewdata and tempdata?
What is the need of Action Filters in ASP.Net MVC
Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?
What is clr? How does work clr & wht is work of clr?
What is .net architecture and framework?