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

ADO.Net - how to get data from database and bind to the controls -- write this small code

3 Answers   Syntel,


how can i call output parameters from ado.net

3 Answers   TCS,


How to execute a stored procedure.and how to call it form a asp page

2 Answers  


What is difference between cache and session?

0 Answers  


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

0 Answers   CTS,


we can able to display a MessageBox in asp .net without using any script langages?

8 Answers   ABC,


Can we use html in asp.net?

0 Answers  


What are asp.net web forms?

0 Answers  


What is the use of placeholder control?

0 Answers  


How to change Master page in ASP.Net using code?

0 Answers   HCL,


Which Is Faster MVC or ASP.net ?

0 Answers   Arigo Infotech,


What's the difference between viewstate and sessionstate?

0 Answers  


Categories