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 generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

0 Answers   CTS,


Can constructor be protected?

0 Answers  


Why cannot you specify the accessibility modifier for methods inside the interface?

0 Answers  


What is the use of static abstract class

5 Answers   Karur Vysya Bank KVB, Target,


What is get set in c#?

0 Answers  






How do you name a variable in c#?

0 Answers  


What are functions in c#?

0 Answers  


What is the use of console readline () in c#?

0 Answers  


Explain the OOPS concept in C#?

0 Answers   HCL,


In which format you can pass the value in the sleep function?

0 Answers  


What?s an abstract class?

4 Answers   NIIT,


Explain use of abstract and sealed classes in c#?

0 Answers  


Categories