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
Is entity framework slow?
Why to use Html.Partial in ASP.Net MVC?
What operating systems will the .net framework 3.0 be available for?
How to use multiple submit buttons in asp.net mvc?
How do I use partial view?
What is the use of the default route {resource}.axd/{*pathinfo} ?
What is Layout in ASP.Net MVC?
What is routeconfig.cs in mvc 4?
What is display mode in mvc?
explain how you can load related entities in ef (entity framework)?
What is difference between html.beginform and ajax.beginform?
Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).
What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?
What is the use of view model in asp.net mvc?
What is the use of the default route?