Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
C# Oops Tutorial
→
C# Oops Interview Questions in C# Oops Tutorial
→
Difference Between Const, Readonly And Static Rea...
1.
Difference Between Const, Readonly And Static Readonly In C# ?
Answer»
Constant variables are declared and initialized at compile time. The value can't be changed after words.
READONLY
variables will be initialized only from the non-static
CONSTRUCTOR
of the same
CLASS
.
Static Readonly variables will be initialized only from the static constructor of the same class.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
Why To Use "using" Statement In C#?
What Is The Difference Between “dispose” And “finalize” Variables In C#?
Difference Between Const, Readonly And Static Readonly In C# ?
What's The Difference Between The 'ref' And 'out' Keywords?
Is It Possible For A Class To Inherit The Constructor Of Its Base Class?
Can 'this' Be Used Within A Static Method?
What Is 'this' Pointer?
Can You Prevent A Class From Overriding?
Is It Possible To Execute Two Catch Blocks?
Can You Inherit Private Members Of A Class?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies