what is the main differnce between const,readonly and static
Answer Posted / komilla shaheen
const is the keyword where we can intialize the variable
with some value which is constant throughout the program it
cannot be changed.
static is the keyword which is intialized at complile time
and had to change at compile time only.
readonly is for the varible which is readonly cant be
changed.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
List some Advantages of switch-case over if else?
What is a decimal c#?
What is static and use of it?
What is lastindexof c#?
what is an exception in .net?
What is better C# or VB.NET?
How do generics work in c#?
What is a hash table c#?
Define the term immutable ?
What do constructors do in c#?
What is a linq in c#?
Explain the difference between the debug class and trace class?
When To use HashTable In C#
What is a hash table in c#?
What is a console file?