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?
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.
☛ 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.
Previous Question | Next 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? |