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

Can you use Razor code in Javascript in ASP.Net MVC?

1202


What is the use of razor view engine?

972


what is more complex to implement property, methods or event? how can I define criteria to compare the difficulty of implementation between them? for example the number of methods wanted to implements property is 2 methods. how many methods I need it to implements events?

2218


What is session state management?

1020


Describe the gac in the .net framework.

1020


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

894


Explain the 'page lifecycle' of an ASP.NET MVC?

1142


What are non action methods in mvc?

1022


How to use multiple submit buttons in asp.net mvc?

1195


what is deferred loading(lazy loading)?

1022


What are the benefits of .net framework?

1013


How to answer for project questions..?

2707


What is difference between Viewbag and Viewdata in ASP.NET MVC?

1056


What is entity framework firstordefault?

973


What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?

1028