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

What does console readline do?

0 Answers  


Can overrride the Main method

6 Answers   NIIT,


Can an exception be thrown from a catch block?

0 Answers   Alcatel-Lucent,


What is the difference between method parameters and method arguments. Give an example?

0 Answers  


What is the difference between static class and abstract class in c#?

0 Answers  


1. What is lazy loading? 2. What is delay signing? 3. How to transfer view object to presenter in MVP? 4. How to create a generic class? 5. What is Ajax object? 6. What is explicit interface implementation? 7. I1, I2 interfaces have same methods (say PrintName) explicitly implemented in class C1. Now how to call PrintName method from I1? 8. I have a list of Customers. List the customer with maximum orders using LINQ.

1 Answers   Aptron, Volvo,


What do you use c# for?

0 Answers  


What is private constructor c#?

0 Answers  


What is difference between class and abstract class in c#?

0 Answers  


What is the difference between Decorator and Adapter pattern?

0 Answers   QuestPond,


Is xamarin free?

0 Answers  


What is dao in c#?

0 Answers  


Categories