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 / alb.shah

can not applied this because i is value type and obj is
reference type so this will create error
//u can do this
Object obj = 5;
int i = 6;
i = i + Convert.ToInt32(obj);

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the options in ASP.NET to maintain state?

1085


What are the asp.net server side objects?

937


What is skin in asp.net?

911


What is the maximum number of classes that can be contained in one dll file?

1179


Explain about asp.net state management?

994


What are the new navigation controls in asp.net 2.0?

977


What happens if an ASP.NET server control with event-handling routines is missing from its definition?

1083


Explain the asp.net mvc folder conventions? : asp.net mvc

969


What is manifest in .net framework?

988


What tags do you need to add within the asp:datagrid tags to bind columns manually? How?

936


What is the appSettings Section in the web.config file?

1011


List the major built-in objects in asp.net?

964


What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc

1011


How do cookies work?

951


Is post back in asp.net?

929