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 we can add the css in mvc?

1012


What is entitycontainer? : Entity framework

1024


What is the purpose of a web form?

1006


How does servicing work for the .net framework 3.0?

934


What is the use .Glimpse in ASP.Net MVC

1043


Is entity framework slow?

1012


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

1015


What is stateless model?

949


how can you tell ef to have a different table or column name than that defined for the class?

1064


Explain linq to entities? : Entity framework

1031


why DotNetFramework is included in building a software

2687


how to disable the lazy loading framework?

1090


what is complex type?

1007


Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).

2287


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

1022