Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?

2798


What is mapping in entity framework? : Entity framework

1042


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.

2654


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?

1051


What is separation of concerns in asp.net mvc?

1216


How we can call a javascript function on the change of a dropdown list in mvc?

1109


what do you mean by table-per-type?

1139


What is difference between html.beginform and ajax.beginform?

1051


What is ViewStart Page in ASP.Net MVC?

1098


Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?

1255


What is .net architecture?

1061


What is .net architecture and framework?

1103


Mention what is the difference between “ActionResult” and “ViewResult” ?

1102


Can I set the unlimited length for "maxjsonlength" property in config?

1092


What are the advantages of razor view engine?

964