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
differences between poco, model first and data first approach?
What is edm (entity data model)? : Entity framework
Possible ways to prevent xss attacks on mvc application?
Why should we go for entity framework?
Explain the advantage of packaging over xcopy in .net?
What are the possible razor view extensions?
When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?
What are sections?
What are the components of the .net framework.
what is lazy loading in entity framework?
How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?
what is entityclient?
Difference between ASP.NET MVC and ASP.NET WebForms?
What is ViewData and TempData in ASP.Net MVC?
Explain the role of assembly in the .net framework.