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

object obj=5 this is boxing

int i=6 this is initialization of variable.

i=i+obj; here we can't sum the value type and reference
type.


so,it gives the error.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

differences between poco, model first and data first approach?

1291


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

1146


Possible ways to prevent xss attacks on mvc application?

1056


Why should we go for entity framework?

1060


Explain the advantage of packaging over xcopy in .net?

1034


What are the possible razor view extensions?

1050


When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?

1047


What are sections?

1195


What are the components of the .net framework.

1094


what is lazy loading in entity framework?

1149


How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

947


what is entityclient?

1178


Difference between ASP.NET MVC and ASP.NET WebForms?

1117


What is ViewData and TempData in ASP.Net MVC?

1074


Explain the role of assembly in the .net framework.

1060