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 is query string? What are its advantages and limitations?

1042


How many web.config files can I have in an application?

1029


How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

1989


Is asp.net mvc still used? : Asp.Net MVC

1030


What is cached data phone?

1093


Which is faster viewbag or viewdata?

1025


What is session state server?

1207


How do cookies work?

1042


How do sessions work?

993


Which is faster viewdata or viewbag?

1054


What are the disadvantages of asp.net?

1129


Explain how asp.net different from asp?

1155


What are the different types of sessions in asp.net?

1008


What is full trust in asp.net?

1179


Is razor a programming language?

1068