will this code works fine? or will it gives error?
Object obj=5;
int i=6;
i=i+obj;
Answer Posted / amit kumar sharma
//can not applied this because i is value type and obj is
reference type so this will create error
//u can do this
Object obj = 5;
int i = 6;
i = i + Convert.ToInt32(obj);
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?
How the ‘page lifecycle’ of ASP.Net MVC does works?
Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?
Explain what is the difference between view and partial view?
Explain the new features added in version 4 of mvc (mvc4)?
mention what is the key advantage of using entity framework or ef?
Why to use Html.Partial in ASP.Net MVC?
What is entitytype? : Entity framework
What are Non Action methods in ASP.Net MVC?
What is entity graph? : Entity framework
What is latest version of .net framework?
How to change the action name in mvc?
Explain the tools used for unit testing in ASP.Net MVC
How we can call a javascript function on the change of a dropdown list in mvc?
What is entitytypes? : Entity framework