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

What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?

1070


How the ‘page lifecycle’ of ASP.Net MVC does works?

1238


Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?

1045


Explain what is the difference between view and partial view?

1129


Explain the new features added in version 4 of mvc (mvc4)?

1059


mention what is the key advantage of using entity framework or ef?

1065


Why to use Html.Partial in ASP.Net MVC?

1182


What is entitytype? : Entity framework

1032


What are Non Action methods in ASP.Net MVC?

1129


What is entity graph? : Entity framework

1031


What is latest version of .net framework?

1165


How to change the action name in mvc?

1048


Explain the tools used for unit testing in ASP.Net MVC

1172


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

1111


What is entitytypes? : Entity framework

1082