Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.



Method1() { int a=0, b=0, c=0; Monitor.Enter(this) c = 12; b = 3; a = c/b ..

Answer / gautam

b

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Sharp Interview Questions

How many bytes is an int c#?

0 Answers  


what does static void Main(string[] args) in C# mean????????

5 Answers   ssinformatics,


What is the differnce between Array and Hash Table?

3 Answers   Impetus, TCS,


How many root nodes are there in an xml document?

0 Answers  


What is a scope in c#?

0 Answers  


Is it possible to have different access modifiers on the get/set methods of a property in c#?

0 Answers  


What is private void in c#?

0 Answers  


Which of these statements correctly declares a two-dimensional array in c#?

0 Answers  


What is Asynchronous call and how it can be implemented using delegates?

0 Answers  


List the different stages of a thread?

0 Answers  


Why delegates are required?

0 Answers  


What is the difference between a private assembly and a shared assembly?

0 Answers  


Categories