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 / somnath nanekar

it will give an error...(we hv to typecast object to int)

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you please explain the request flow in ASP.NET MVC framework?

1104


how do you mark a property as required? For example, for a project, the name is a required field.

1049


Explain the methods used to render the views in mvc?

1005


how to disable the lazy loading framework?

1062


What is model first? : Entity framework

1043


What is the difference between .net core and .net framework?

959


What is razor code?

1053


what is scalar property?

1056


What is an asynchronous controller in asp.net mvc?

1024


What are html helpers in asp.net mvc?

1015


explain lazy loading, eager loading, and explicit loading?

998


How do I use partial view?

950


What is managed extensibility framework?

976


Explain the .net framework.

992


explain how you can load related entities in ef (entity framework)?

975