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
Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?
What is mapping in entity framework? : Entity framework
I want to fetch data from datareader. i have three tables in datareader. i want to bind my two table with datagrid, then i want to fetch a value from my third table. do u have any idea pls help me. we use dr.nextresult() for multiple tables.
My organization went through the approval process of supporting the .net framework 2.0 in production. Do we need to go through the same process all over again for the .net framework 3.0? Do I need to do any application compatibility testing for my .net framework 2.0 applications?
What is separation of concerns in asp.net mvc?
How we can call a javascript function on the change of a dropdown list in mvc?
what do you mean by table-per-type?
What is difference between html.beginform and ajax.beginform?
What is ViewStart Page in ASP.Net MVC?
Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?
What is .net architecture?
What is .net architecture and framework?
Mention what is the difference between “ActionResult” and “ViewResult” ?
Can I set the unlimited length for "maxjsonlength" property in config?
What are the advantages of razor view engine?