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 |
What is xslt in c#?
Can abstract class have private constructor c#?
What are the Types of configuration files and their differences
What is the difference between constant and readonly in c#?
Difference between dispose and destructor?
Can I fly with a loop recorder?
what is IDisposal interface
What?s the role of the DataReader class in ADO.NET connections?
Give an example of a ctype.
What is the .NET collection class that allows an element to be accessed using a unique key?
Who benefits from ajax?
What are the characteristics of c#?