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
What are url fragments?
What are validator? How do you disable them?
Differentiate between authentication and authorization.
Explain about Multi-Language integration?
What does the hotspot class in .net do?
How many types cache in asp net?
What are assemblies and namespaces and explain the difference between them ?
What is the default timeout for a cookie?
Define repository pattern in asp.net mvc? : asp.net mvc
Can a .net web application consume java web service?
Why we go for mvc instead of asp.net? : Asp.Net MVC
If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?
Where do the cookie state and session state information be stored?
What does passport and windows authentication mean in ASP.NET?
Can we set which type of comparison we want to perform by the CompareValidator control?