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 can we make sure that Web API returns JSON data only?
Can One website be made using two different languages like c#,vb.net etc......
How do you implement postback with a text box?
difference between gridview,data list and repeater control
What is parse in asp.net?
what is the trace in ASP.NET
Explain the differences between Server-side and Client-side code?
Why do you use the app_code folder in asp.net?
What is reflection and disadvantages of reflection?
Suppose there is one web farm with 3 servers inside with same configuration and the same project is running inside all servers.Which session mode is usde for all these and why?
How .net CLR works with n-tier application
How would ASP and ASP.NET applications run at the same time on the same server?