Which of the following statements is true about given code?
public class Test
public static readonly int x = 90;
public readonly int z;
public static readonly int y = 10;
public readonly int p = x + 20;
Without initialization, declaration of read-only variables not allowed.
We can not make read-only variables as static.
We can not give reference of one read-only variable to other read-only expression.
Code will be compiled successfully.
Back To Top