will this code works fine? or will it gives error? Object
obj=5; int i=6; i=i+obj;
Answer / alb.shah
can not applied this because i is value type and obj is
reference type so this will create error
//u can do this
Object obj = 5;
int i = 6;
i = i + Convert.ToInt32(obj);
Is This Answer Correct ? | 15 Yes | 2 No |
How to publish website
What is the difference between pathparam and queryparam?
Where do we store our connection string in asp.net application?
What are the modes of updation in an updatepanel?
What are the navigation ways between pages available in ASP.NET?
What Are Different Types of Debbugers
2 Answers Accenture, TCS, Wipro,
What is the difference between stored procedure vs function?
what is the generics and where used generics in your project?
What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?
Describe the two main components of the .NET framework ?
How you will handle session when deploying application in more than a server?
What is asynchronous call?