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

How can we determine action invoked from HTTP GET or HTTP POST?

1010


What is an asynchronous controller in asp.net mvc?

1024


What is Area in ASP.Net MVC?

1080


Which is the root namespace for fundamental types in .net framework?

986


mention what is csdl, ssdl and msl sections in an edmx file?

1005


What are the 2 ways of adding constraints to a route?

987


Is it possible to cancel filter execution?

1007


Which are the important namespaces used in mvc?

1179


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

1106


What is MVVM design pattern?

1023


What is oauth in web api?

1006


What is display mode in mvc?

992


Can I uninstall microsoft .net framework?

997


what is entity framework?

1057


How route table has been created in ASP.NET ASP.Net MVC?

989