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
How the ‘page lifecycle’ of ASP.Net MVC does works?
Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?
What symbol would you use to denote, the start of a code block in razor views?
what is entityclient?
Explain how you can send the result back in JSON format in MVC?
What are the 2 popular asp.net mvc view engines?
what do you mean by table-per-hierarchy?
what is split entity?
what is code first approach?
What are the components of the .net framework.
What is meant by viewdata?
What is net framework 3.0 ?
What are actions in mvc?
Can you explain the page life cycle of mvc?
What is the difference between renderaction and renderpartial?