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;



will this code works fine? or will it gives error? Object obj=5; int i=6; i=i+obj;..

Answer / 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

More ASP.NET Interview Questions

Explain about solution explorer window?

0 Answers  


What is authorization in asp.net?

0 Answers  


What is cookie less session? How it works?

2 Answers   TCS,


How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC

0 Answers  


How do I know asp.net mvc version? : Asp.Net MVC

0 Answers  


What are query strings used for?

0 Answers  


What is autopost?

0 Answers  


Which class provides methods that can be used to manage role membership to be used in user authorization?

3 Answers   Wipro,


Can you explain what inheritance is and give an example of when you might use it?

1 Answers  


what are the differences between windows services and web services?

5 Answers   Tech Mahindra,


how to add cliet side event to server side? and how to register client script to sever side? wt difference these two

3 Answers   PSI Data Systems,


In which interface the template of any control like Gridview would Initiate?

2 Answers  


Categories