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
Explain the new features added in version 4 of mvc (mvc4)?
differences between poco, model first and data first approach?
Explain ASP.NET MVC Identity and Security?
What is entity framework in asp net?
What does a viewmodel do?
What is the meaning of unobtrusive javascript? Explain us by any practical example.
What is the .net framework and how does it work?
What is the use of action filters in an mvc application?
Can a view be shared across multiple controllers? If yes, how we can do that?
What is associationset? : Entity framework
What are ajax helpers in asp.net mvc?
How can I return string result from action in asp.net mvc?
What is edm in entity framework?
what is csdl?
How large is the .net framework 3.0?