will this code works fine? or will it gives error?
Object obj=5;
int i=6;
i=i+obj;
Answer Posted / deepika
It will give error: "Operator '+' cannot be applied to
operands of type 'int' and 'object'"
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain the difference between viewbag and viewdata in mvc?
How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?
The order of the filters that get executed, if the multiple filters are implemented?
How we can call a javascript function on the change of a dropdown list in mvc?
What is meant by viewdata?
What are the 3 main components of an asp.net mvc application?
What is an asynchronous controller in asp.net mvc?
What is namespace of asp.net mvc?
What is the use of web api ? Why web api needed, if you have already restful services using wcf ?
What does a viewmodel do?
What is viewbag?
What is asp net framework?
What is the difference between ViewData, ViewBag and TempData?
Is .net framework dead?
What are Action Methods in ASP.NET MVC?