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

what is shared assembly?

2 Answers   Microsoft,


What is authorization in asp.net?

0 Answers  


Explain how can we inherit a static variable?

0 Answers  


What is role-based security in asp.net?

0 Answers  


What is the difference between response.redirect and server.transfer, how to choose one among the other?

3 Answers   247Customer,


In a Code-Behind class generally which type of code is found ?

3 Answers   Siebel,


Which is the parent class of the ASP.NET server control?

0 Answers   Sans Pareil IT Services,


What are the modes of updation in an updatepanel? What are triggers of an updatepanel?

0 Answers  


on modify statement, executeNonQuery returns zero rows affected even though there has been modification carried out sucessfully in the table.. can anyone tell me is this possible??? if yes, how..???

1 Answers   ADITI,


What is custom attribute?

0 Answers  


Explain the components of web form in asp.net

0 Answers  


When would you set this property to false?

2 Answers  


Categories