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
What are Code Blocks in Views?
What is difference between razor and web form engine?
What is the difference between viewbag and viewdata in mvc?
Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?
What are Non Action methods in ASP.Net MVC?
What is associationset? : Entity framework
Is mvc 4 supporting windows azure sdk (software development kit) ?
How to enable Attribute Routing?
Explain the tools used for unit testing in ASP.Net MVC
what is msl?
What is the .net framework 3.0 (formerly winfx)?
How to change the action name in mvc?
Do I need microsoft .net framework?
what is model first approach?
i want to take the fast track training on >net Frame work and work flows and share point could you tellme the good institutes for that cources