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
Explain the role of assembly in the .net framework.
What is Separation of Concerns in ASP.NET ASP.Net MVC?
What is the difference between model and entity?
explain how you can load related entities in ef (entity framework)?
What is MVVM design pattern?
What is renderbody?
What is Area in ASP.Net MVC?
What is needed for running an application built on winfx on the .net framework 3.0?
Which version of the common language runtime (clr) does the .net framework 3.0 use?
Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?
Does .NET Framework support SAX?
Does razor engine supports for tdd?
What is viewstart page in mvc?
how can you enhance the performance of entity framework?
How do you specify comments using razor syntax?