What is the difference between String s(Small s) and String
S(Capital S)?
Answers were Sorted based on User's Feedback
Answer / bhagyashri
Small string is used as a DataType to declare variable &
Capital String is Class.Both are derived from
System.String.To Declare Any string variable we use small
string.
| Is This Answer Correct ? | 25 Yes | 1 No |
There is no difference between string and String.
string is just an alias of System.String. They both
are complied to the same code. In IL there is no difference
between the two. But as a standard followed by MSDN string
is used as datatype declaration e.g string s = "abc"
and if we are accessing some class then String should be
used. e.g String.Format("abc");
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / azka106
basically string is used as datatype,.,.., whereas String is a predefined function ,.,. that usually called as String function,.,.,. and when we have to print something using String we override this String function,...and small s string is just datatype as above describe..
| Is This Answer Correct ? | 1 Yes | 2 No |
You have got 1 million parking slots. At a time a parking slot can be free or not. To get next slot easily which data structure to implement?
How to authenticate web service? When you enter the web service url in browser it should ask username and password. After entering the un&pwd we have to show its methods and service description(wsdl).
why C#.net doesnot support prcedures and why it supports structs,functions
What is constructor overloading in c#?
If I have code like try { return; } catch { return; } finally { return; } from which block will the value will be returned. and try has been executed without any error.
What does this keyword mean in c#?
How to use delegates with events?
how to use caching in our program. why we use it give one example in code
What do you mean by delegates and explain different types of delegates?
What’s thread.sleep() in threading ?
Is overriding of a function possible in the same class?
Why delegate is used in c#?
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)