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 actions in mvc?
Difference between ASP.NET MVC and ASP.NET WebForms?
What are ajax helpers in asp.net mvc?
What are Scaffold templates in ASP.Net MVC?
Which version of .net framework is installed?
In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?
What is Attribute Routing in ASP.Net MVC?
Is .net core replacing .net framework?
What filters are executed in the end?
How we can invoke child actions in ASP.Net MVC?
What is controllercontext?
What is entity framework? : Entity framework
what is entity graph in entity framework?
What is ado.net data provider? : Entity framework
what is split entity?