Tuesday, December 30, 2014

What are synchronized methods and synchronized statements

Question:What are synchronized methods and synchronized statements?

Answer: Synchronized methods are methods that are used to control access to an object. A threadonly executes a synchronized method after it has acquired the lock for the method'sobject or class. Synchronized statements are similar to synchronized methods. Asynchronized statement can only be executed after a thread has acquired the lock for theobject or class referenced in the synchronized statement.

Tags:Interview Questions, J2EE, Java,

Please submit your Interview Answer for the above Question via replying to this post. Thank you for visiting to our blog, Have a Good Day!.



Sponsor Advertisement




Medical Billing Software

Hospital Management System Software

Hospital Management System (HMS) Software is developed for multispeciality hospitals, to cover a wide range of hospital administration and management processes with financial accounting, voucher entry, pharmacy, patients module etc features...

No comments:

Post a Comment