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 round trip in asp.net?

932


5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?

2202


What are server activated objects?

1162


Explain different types of validators in asp.net?

1004


Define what is razor? : asp.net mvc

1003


How do I open an ashx file?

1072


In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely

1999


Where is session data stored in asp net?

976


How do you declare static variable? What is its lifetime?

958


What does asax stand for?

988


What are the components of ado.net?

955


Where sessions are stored in asp.net?

1014


What is session and application variable in asp net?

906


What is the usage of DelegatingHandler?

1080


Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?

1001