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 / amit kumar sharma

//can not applied this because i is value type and obj is
reference type so this will create error
//u can do this
Object obj = 5;
int i = 6;
i = i + Convert.ToInt32(obj);

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to share a view across multiple controllers?

975


How does servicing work for the .net framework 3.0?

942


Explain the 'page lifecycle' of an ASP.NET MVC?

1144


What is rxjava used for?

1136


What are bundling & minification features in asp.net mvc 4?

977


What is clr? How does work clr & wht is work of clr?

1042


Describe the .net framework architecture.

1067


what is deferred loading(lazy loading)?

1029


How do I install .net framework?

971


what is msl?

1035


Explain unit test done by tester on development team?

1001


What is net framework 3.0 ?

1102


What is entityset? : Entity framework

1046


How route table is created in ASP.NET MVC?

1066


why DotNetFramework is included in building a software

2687