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

diffrance between stored procedure & function in sql server?

2 Answers  


Explain about Multi-Language integration?

0 Answers  


what are the Custom controls in asp.net?

0 Answers   MCN Solutions,


what is use to destroy an object? illustrate.

2 Answers   Patni,


What is the difference between abstract class vs interface? Can give me the real time examples?

0 Answers  


What would be salary for 6+ years of experience in ASP.NET in different metro city in india?

4 Answers  


Difference between .NET components and COM components?

2 Answers   Microsoft,


Types of values mode can hold session state in Web.Config?

6 Answers   Accenture,


Is asp.net and .net are same or different?

0 Answers  


What are the asp.net objects? is it application obects, cache objests etc. or is it state managements, web services etc?

3 Answers   Syntel,


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

5 Answers   Siebel Systems,


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

0 Answers   CTS,


Categories