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

What are action filters?

596


What is html.renderpartial?

558


How does the .net framework 3.0 relate to windows vista?

563


How route table is created in ASP.NET MVC?

591


Explain Bundle.Config in ASP.Net MVC4?

561






What is managed extensibility framework?

555


List the new features added in .net framework 4.0.

516


Explain dependency resolution?

613


Why to use Html.Partial in ASP.Net MVC?

598


how can you tell ef to have a different table or column name than that defined for the class?

568


What is poco proxy? : Entity framework

551


What is the need of Action Filters in ASP.Net MVC

566


What is viewbag title?

521


what is .edmx file and what it contains?

594


In Server how to check whether model has error or not in ASP.Net MVC

614