10.
Which of the following checks for a null value?
View Description
?? operator checks if the object on the left hand side is null. if null it returns the object/value on the right hand side of the operator otherwise it returns the object/value on the left hand side of this operator
Example:
object obj = null; object obj2 = obj ?? 10;
obj2 will have value of 10 when the above code is run