Senior .Net Developer Question: Download Senior .Net Developer PDF

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

Tweet Share WhatsApp

Answer:

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.

Download Senior .Net Developer PDF Read All 60 Senior .Net Developer Questions
Previous QuestionNext Question
Explain me what is the difference between a class and an object, and how do these terms relate to each other?Explain me what is the .Net framework and how does it work?