Differentiate read-only variables and constants
Difference between read-only variables and constants which are used in programs?
Expert
The constants perform similar tasks as the read-only variables with a number of differences. Differences between read-only and constants are as follows:
Constants:
1. Constants deal at compile-time.
2. It supports value-type variables.
3. It must be used when it is not likely that the value will ever modify.
Read-only:
1. Read-only variables are estimated during runtime.
2. These variables could hold reference type variables.
3. These variables must be used when run-time calculation is needed.
Is it possible to declare a private class in a namespace?
A Destructor is defined in a class that is developed by using the C# programming language, but the destructor is never executed. Why did this happen?
Describe in brief the term XAML extensible markup language?
Describe code contracts?
Explain the use of App_Code folder in ASP.NET?
Explain why SiteMapPath control is being referred as eyebrow or breadcrumb navigation control?
Two catch blocks can be executed or not?
By which method we can post a Web page to another Web page?
How rows can be added or deleted from the DataTable object of DataSet?
Write the name of the new method that has been introduced in ASP.NET 4.0 to redirect the page permanently?
18,76,764
1944005 Asked
3,689
Active Tutors
1417210
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!