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
What are ajax helpers in asp.net mvc?
explain how you can load related entities in ef (entity framework)?
What is work of clr?
Is entity framework slow?
What is Dependency Injection in ASP.Net MVC
Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).
Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?
why DotNetFramework is included in building a software
Explain RenderBody and RenderPage in ASP.Net MVC?
What are authentication filters in web api?
What are actions in mvc?
what is entity sql?
how do you mark a property as required? For example, for a project, the name is a required field.
What is edm (entity data model)? : Entity framework
Explain the use of Inversion of control (IOC)?