Method1()
{
int a=0, b=0, c=0;
Monitor.Enter(this)
c = 12;
b = 3;
a = c/b
Moniter.Exit(this)
}
Method1()
{
int a=0, b=0, c=0;
c = 12;
b = 3;
lock(this){
a = c/b
}
}
Choose correct answer.
a. Upon completion, Method1 and Method2 release the lock
b. Upon Comletion, Method1 release the lcok and Method2 not.
c. Upon Completion, Method2 release the lock and Method1
not.
d. Upon Completion, neither Method1 or Method to release
the lock.
What is difference between method overriding and method overloading?
What is gac? How to put assembly in gac?
I want to single value if you give any integer value. Below are examples 1. Input: 123 Output: 6 2. Input: 99 9+9=18 1+8 Output: 9 How to get above output?
Define xslt.
Explain when should you call the garbage collector in .net?
What is meant by console programming?
Can int be null c#?
What is console used for?
What are the principles of delegation?
What is thread safe in c#?
Define an escape sequence, name few strings in escape sequence?
What is the different types of private assembly and shared assembly?