will this code works fine? or will it gives error?
Object obj=5;
int i=6;
i=i+obj;
Answer Posted / prakash kesharwani
this definitely work.
since obj as type integer. and also i as integer.
so the output will be 11.
its gives error when obj is type string.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
How we can multiple submit buttons in ASP.Net MVC
Explain representational state transfer (rest) in detail?
How can you return string result from Action in ASP.Net MVC?
What is domain class model?
Briefly describe the roles of clr in .net framework?
What are the new features 3.5 framework against with the tool?
Mention two instances where routing is not implemented or required?
How large is the .net framework 3.0? Does this change make the release larger?
What are html helpers in asp.net mvc?
What is mvc entity framework?
What is net framework 3.0 ?
What are ajax helpers in mvc?
Is .net core faster than .net framework?
What is .net core framework?
What is layout in mvc?