What is the difference between String s(Small s) and String
S(Capital S)?
Answer Posted / sudhir sheoran
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 |
Post New Answer View All Answers
How will you get the different language strings?
What is unrecognized escape sequence in c#?
Illustrate the differences between the system.array.copyto() and system.array.clone()?
What does get set mean in c#?
What language is arduino?
what are implementation inheritance and interface inheritance?
What is a class level variable in c#?
What is dynamic in c#?
What's difference between constants and static readonly?
What is boxing and unboxing in c#?
What is a constructor in c#?
What is difference between internal and protected internal in c#?
What are the benefits of using windows services:
What are delegates and why are they required?
What are extensions methods in c#?