will this code works fine? or will it gives error? Object
obj=5; int i=6; i=i+obj;
Answer Posted / 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 |
Post New Answer View All Answers
Explain the server control events of asp.net ?
What is the current version of asp.net?
Is asp.net and .net are same or different?
Do gac'ed assemblies have fulltrust?
Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?
Differentiate the session object and application object?
What are triggers of an updatepanel?
can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it
How would you turn off cookies on one page of your website?
Is asp.net a programming language?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
How can you implement the postback property of an asp.net control?
What does passport and windows authentication mean in ASP.NET?
What is the difference between user control an custom control?
How ASP and ASP.NET page works? Explain about asp.net page life cycle?