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 |
What is difference between view and partial view?
What's the advantage of using System.Text.StringBuilder over System.String?
3 Answers IBM, IdeaLake, Infosys,
Why we are using mvc instead of asp.net? : Asp.Net MVC
Exception handling
What are the different types of validation controls provided in ASP.NET?
0 Answers Sans Pareil IT Services,
What is the difference between ASP Session State and ASP.Net Session State?
what is the uses Of Global.asax
Explain the main function of url routing system in asp.net mvc? : asp.net mvc
How will u decide when to use caching and when to use viewstate?
How to disable disable browser's Back button in asp.net (JavaScript)?
which type of data u send through request.querystring()?and tell abt exact size?
Features and disadvantages of dataset ?
4 Answers Interlink, Microsoft,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)