Answer Posted / pavan
both of them does the same work these value cannot be
changed
but with a samll difference
using const we can assign a value before compile time
but using readonly we can assign value to the varible ones
in runtime
Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
what is the default security setting in .net?
Explain what is a delegate?
What is typical about a windows process in regards to memory allocation in .net?
What is a formatter in .net?
What is the difference between asp.net and asp?
How to implement getcommon method in class a? Are you seeing any problem in the implementation?
What is the difference between constants and read-only variables?
What is interface and abstract class in .net?
What is the new three features of COM+ services, which are not there in COM (MTS)
Is .net core installed?
Describe the difference between inline and code behind which is best in a loosely coupled solution?
Do you know what is lambda expressions in c#?
I am constantly writing the drawing procedures with system.drawing.graphics, but having to use the try and dispose blocks is too time-consuming with graphicsobjects. Can I automate this?
Explain the difference between managed and unmanaged code?
How do you instantiate a complex number?