Answers

Question and Answer:

  Home  Senior .Net Developer

⟩ As you know read-only variables and constants have many similarities, but what is at least one way that they differ?

Here are two possible answers to .NET interview questions of this nature:

☛ Read-only variables can support reference-type variables. Constants can hold only value-type variables.

☛ Developers evaluate read-only variables at the runtime. They evaluate constants at the compile time.

 144 views

More Questions for you: