Can you change the value of a constant filed after its declaration?



Can you change the value of a constant filed after its declaration?..

Answer / Ashish Trivedi

No, constants in C# are read-only and cannot be changed after their declaration.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What are the types of threading models ?

4 Answers   Digital GlobalSoft,


In all methods of an interface should be derived?

5 Answers  


What is difference between an reference type and value type in C#?

1 Answers   B-Ways TecnoSoft,


What is serialization and deserialization in c# with example?

1 Answers  


What is the max value of int32 in c#?

1 Answers  


Explain the top reason to use c# language?

1 Answers  


What is lastindexof c#?

1 Answers  


Where do we use static class in c#?

1 Answers  


Is var a data type?

1 Answers  


Why constructor is used in c#?

1 Answers  


Explain the types of assemblies in .net?

1 Answers  


How do you access a constant field declared in a class?

1 Answers  


Categories