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

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

Answer Posted / sri4u_926

Defenitly it gives Error bcoz we cannot apply operators for
the type object.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 3 segments of the default route, that is present in an ASP.NET MVC application?

594


What is partialview in asp.net mvc?

599


What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?

532


Which is the root namespace for fundamental types in .net framework?

565


Explain ASP.NET MVC Identity and Security?

571






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

580


Explain entity lifecycle? : Entity framework

547


Do I need microsoft .net framework?

554


Explain the new features 3.5 framework against with the tool?

503


What does mvvm mean?

552


What is .net framework in simple terms?

538


What is objectset? : Entity framework

548


what is dot net? what is use dot net? what is benifit of dot net?what is vb dot net? what is ado dot net? what is c#?

1806


Why should we go for entity framework?

524


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

629