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 / prakash kesharwani

this definitely work.
since obj as type integer. and also i as integer.
so the output will be 11.

its gives error when obj is type string.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are ajax helpers in asp.net mvc?

1056


explain how you can load related entities in ef (entity framework)?

974


What is work of clr?

972


Is entity framework slow?

995


What is Dependency Injection in ASP.Net MVC

1034


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

2270


Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?

2689


why DotNetFramework is included in building a software

2666


Explain RenderBody and RenderPage in ASP.Net MVC?

1145


What are authentication filters in web api?

1035


What are actions in mvc?

989


what is entity sql?

1066


how do you mark a property as required? For example, for a project, the name is a required field.

1047


What is edm (entity data model)? : Entity framework

1047


Explain the use of Inversion of control (IOC)?

1035