will this code works fine? or will it gives error?

Object obj=5;
int i=6;
i=i+obj;

Answer Posted / deepika

It will give error: "Operator '+' cannot be applied to
operands of type 'int' and 'object'"

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the components required to create a route in mvc?

803


What is rxjava used for?

857


What is namespace of asp.net mvc?

838


I want to fetch data from datareader. i have three tables in datareader. i want to bind my two table with datagrid, then i want to fetch a value from my third table. do u have any idea pls help me. we use dr.nextresult() for multiple tables.

2374


What is stateless model?

722


Do I need microsoft .net framework?

736


what is entityclient?

859


What is viewstart page in mvc?

765


Explain what platforms does the .net framework run on?

765


Explain the 'page lifecycle' of an ASP.NET MVC?

821


What filters are executed in the end?

763


What is routeconfig.cs in mvc 4?

859


What is basic authentication in web api?

715


I want ask from plz smaple example code for Biztalkk server

1918


What is a model in programming?

742