Multiple choice technology programming languages

What are Reference Type in .NET?

  1. String

  2. Object

  3. Both

  4. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In .NET, both System.String and System.Object are reference types. The object type is the ultimate base class of all types, while string represents a sequence of Unicode characters and is a reference type, despite possessing some value-type-like characteristics such as immutability.