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

Explain the role of assembly in the .net framework.

1017


What is Separation of Concerns in ASP.NET ASP.Net MVC?

1183


What is the difference between model and entity?

1037


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

994


What is MVVM design pattern?

1036


What is renderbody?

1043


What is Area in ASP.Net MVC?

1100


What is needed for running an application built on winfx on the .net framework 3.0?

964


Which version of the common language runtime (clr) does the .net framework 3.0 use?

1088


Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?

999


Does .NET Framework support SAX?

1016


Does razor engine supports for tdd?

1166


What is viewstart page in mvc?

1019


how can you enhance the performance of entity framework?

1056


How do you specify comments using razor syntax?

1027