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

What are actions in mvc?

944


Difference between ASP.NET MVC and ASP.NET WebForms?

1009


What are ajax helpers in asp.net mvc?

1010


What are Scaffold templates in ASP.Net MVC?

1003


Which version of .net framework is installed?

893


In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?

1026


What is Attribute Routing in ASP.Net MVC?

1050


Is .net core replacing .net framework?

913


What filters are executed in the end?

971


How we can invoke child actions in ASP.Net MVC?

1052


What is controllercontext?

989


What is entity framework? : Entity framework

987


what is entity graph in entity framework?

1056


What is ado.net data provider? : Entity framework

987


what is split entity?

1009