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

What are Code Blocks in Views?

1102


What is difference between razor and web form engine?

1092


What is the difference between viewbag and viewdata in mvc?

949


Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?

1173


What are Non Action methods in ASP.Net MVC?

1054


What is associationset? : Entity framework

1047


Is mvc 4 supporting windows azure sdk (software development kit) ?

1004


How to enable Attribute Routing?

1097


Explain the tools used for unit testing in ASP.Net MVC

1107


what is msl?

1013


What is the .net framework 3.0 (formerly winfx)?

976


How to change the action name in mvc?

977


Do I need microsoft .net framework?

976


what is model first approach?

1096


i want to take the fast track training on >net Frame work and work flows and share point could you tellme the good institutes for that cources

2003