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
Is it possible to share a view across multiple controllers?
How does servicing work for the .net framework 3.0?
Explain the 'page lifecycle' of an ASP.NET MVC?
What is rxjava used for?
What are bundling & minification features in asp.net mvc 4?
What is clr? How does work clr & wht is work of clr?
Describe the .net framework architecture.
what is deferred loading(lazy loading)?
How do I install .net framework?
what is msl?
Explain unit test done by tester on development team?
What is net framework 3.0 ?
What is entityset? : Entity framework
How route table is created in ASP.NET MVC?
why DotNetFramework is included in building a software