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 / prakash kesharwani

this definitely work.
since obj as type integer. and also i as integer.
so the output will be 11.

its gives error when obj is type string.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can multiple submit buttons in ASP.Net MVC

1151


Explain representational state transfer (rest) in detail?

1022


How can you return string result from Action in ASP.Net MVC?

1054


What is domain class model?

1022


Briefly describe the roles of clr in .net framework?

1003


What are the new features 3.5 framework against with the tool?

1067


Mention two instances where routing is not implemented or required?

1219


How large is the .net framework 3.0? Does this change make the release larger?

1008


What are html helpers in asp.net mvc?

1037


What is mvc entity framework?

966


What is net framework 3.0 ?

1098


What are ajax helpers in mvc?

971


Is .net core faster than .net framework?

1085


What is .net core framework?

1001


What is layout in mvc?

1020