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 / deepika

It will give error: "Operator '+' cannot be applied to
operands of type 'int' and 'object'"

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is renderbody?

1107


What is display mode in mvc?

1063


What is viewbag title?

993


How to change the action name in mvc?

1048


Explain entity lifecycle? : Entity framework

1112


What is viewdata?

1081


Explain the use of Inversion of control (IOC)?

1100


Does Tempdata hold the data for other request in ASP.Net MVC?

1025


Name a few different return types of a controller action method?

1197


What is the difference between renderaction and renderpartial?

1197


Can we add constraints to the route? If yes, explain how we can do it?

1275


How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?

986


Can I remove .net framework?

1041


Which version of .net framework is installed?

1031


Describe the gac in the .net framework.

1071