GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  Java

 Print  |  
Question:  Can a lock be acquired on a class

Answer: Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object..


July 07, 2005 02:05:15 #1
 Aditya   Member Since: Visitor    Total Comments: N/A 

RE: Can a lock be acquired on a class
 
we can get lock on the class's Class object by using "static synchronize". This is the most exclusive lock.
     

 

Back To Question