Can a lock be acquired on a class?

Answer Posted / janet

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

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of list in java?

527


How to instantiate member inner class?

628


Print Vertical traversal of a Binary Tree.

614


Difference between this() and super() in java ?

620


How we can skip finally block of exception even if some exception occurs in the exception block in java?

528






What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

616


What are keywords in programming?

570


Describe the syntax of multiple inheritance? When do we use such an inheritance?

588


How does predicate work in java?

545


Explain about wait() method?

571


What is rmi and steps involved in developing an rmi object?

572


How do you control extraneous variables?

511


Which browsers work with java?

569


What is the purpose of interface?

587


What are scriptlets?

601