What is the output of the below given code ?
public class Test
public const string d = "skillgun";
Code will be compiled successfully.
Compilation error throwing the reason as " only value types can be declared as constants ".
Compilation error stating the reason as " A const field of a reference type must assigned with null".
None of the above.
String can be declared as a constant, though string is a reference type .
Back To Top