Static is same as constant variable but we can change the value of static variable and we can access the variables without creating any instances
Microsoft Dot Net Master
Microsoft Dot Net Master
Sunday, February 17, 2013
What is the Difference between read only and constant variables?
Read only can assign the values at runtime only.
Constant will assign the values at compile time only.
We cannot modify the both variable values.
What is the difference between view state and hidden field?
viewstate is secured hidden field is insecure
Viewstate will store large amount of data but hidden filed will store small amount of data.
What is Collation?
Collation refers to a set of rules that determine how the data is sorted and compared.
What is the difference between .tostring(), Convert.tostring()?
The basic difference between them is “Convert” function handles NULLS while
“.ToString()” does not it will throw a NULL reference exception error. So as a good coding
practice using “convert” is always safe.
What are the thread priority levels?
Thread priority levels are five types
0 - Zero level
1 - Below Normal
2 - Normal
3 - Above Normal
4 - Highest
By Default priority level is 2
What is synchronization?
The mechanism needed to block one thread access to the data. If the data is being accessed by another thread.
Synchronization can be accessed by using system.monitor class
A monitor class methods are enter, exit, pulse for this lock statement is also used
Suppose if we need to synchronize some data at that time we need to place that data in this block
Lock
{
}
Whatever the data has been placed into the lock block that data has been blocked
Subscribe to:
Posts (Atom)