Home
C-Sharp
Interview FAQs

Show

FAQs of level

System.String is immutable; System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.
StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it is being operated on, a new instance is created.
The first one performs a deep copy of the array, the second one is shallow.
A variable maybe out of scope without having reached the end of its lifetime.
Scope refers to the region of code in which a variable may be accessed.
Lifetime refers to the span of time from when the variable is declared to when it is destroyed.
C# treats Integer & Boolean data types as two entirely different types.
1. Value Parameters
2. Reference Parameters
3. Output Parameters
4. Parameter Arrays
PreviousDisplaying 10 of 25Next
Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*