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
Can you use Razor code in Javascript in ASP.Net MVC?
What is the use of razor view engine?
what is more complex to implement property, methods or event? how can I define criteria to compare the difficulty of implementation between them? for example the number of methods wanted to implements property is 2 methods. how many methods I need it to implements events?
What is session state management?
Describe the gac in the .net framework.
How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?
Explain the 'page lifecycle' of an ASP.NET MVC?
What are non action methods in mvc?
How to use multiple submit buttons in asp.net mvc?
what is deferred loading(lazy loading)?
What are the benefits of .net framework?
How to answer for project questions..?
What is difference between Viewbag and Viewdata in ASP.NET MVC?
What is entity framework firstordefault?
What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?