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 entitycontainer? : Entity framework
How can we determine action invoked from HTTP GET or HTTP POST?
What are ajax helpers in mvc?
what is model first approach?
What are Action Methods in ASP.NET MVC?
What is .net architecture and framework?
Why should we go for entity framework?
what is explicit loading?
why DotNetFramework is included in building a software
What is an asynchronous controller in asp.net mvc?
What is viewbag?
Is .net framework dead?
Explain peek method in tempdata in asp.net mvc?
What is the use of web api ? Why web api needed, if you have already restful services using wcf ?
Can you please explain the request flow in ASP.NET MVC framework?