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

Explain the new features added in version 4 of mvc (mvc4)?

1014


differences between poco, model first and data first approach?

1216


Explain ASP.NET MVC Identity and Security?

991


What is entity framework in asp net?

1099


What does a viewmodel do?

1063


What is the meaning of unobtrusive javascript? Explain us by any practical example.

1007


What is the .net framework and how does it work?

973


What is the use of action filters in an mvc application?

1123


Can a view be shared across multiple controllers? If yes, how we can do that?

1060


What is associationset? : Entity framework

1067


What are ajax helpers in asp.net mvc?

1075


How can I return string result from action in asp.net mvc?

1054


What is edm in entity framework?

989


what is csdl?

1012


How large is the .net framework 3.0?

1030