What is the difference between String s(Small s) and String
S(Capital S)?

Answers were Sorted based on User's Feedback



What is the difference between String s(Small s) and String S(Capital S)?..

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

What is the difference between String s(Small s) and String S(Capital S)?..

Answer / 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

What is the difference between String s(Small s) and String S(Capital S)?..

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 the difference between String s(Small s) and String S(Capital S)?..

Answer / rohit hannurkar

Nothing both are identefer

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More C Sharp Interview Questions

What is the use of generics in c#?

0 Answers  


What does console readkey do in c#?

0 Answers  


What is the difference between abstract class and interface in c#?

0 Answers  


Is exe is machine dependent?

0 Answers  


What is a function c#?

0 Answers  






Can you use foreach iteration on arrays in c#?

0 Answers  


What is console based application?

0 Answers  


What is abstract class ?

5 Answers   Digital GlobalSoft,


What is a generic in c#?

0 Answers  


How does a while loop work?

0 Answers  


What is the difference between null and string empty in c#?

0 Answers  


How do I create a new form in c#?

0 Answers  


Categories