What is the difference between static synchronize() metod
and synchronize() method?

Answer Posted / suresh m

Non static synchronized method enables Object's Object Lock for the given Thread
while static synchronized method enables Class's Class Lock for given Thread

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can java program run without jre?

571


What is the full name of java?

571


what is meant by HQL?

643


Differentiate between the constructors and methods in java?

511


What is the syntax and characteristics of a lambda expression?

559






Is linked list a linear or non-linear data structure?

549


What's a method in programming?

551


Can anonymous class have constructor?

552


How do you pass by reference?

539


What is a function argument in java?

520


What is a buffer in computer?

515


What will happen when using pass by reference in java?

526


Differences between traditional programming language and object oriented programming language?

574


What is the properties class in java programming?

547


Explain notifyall() method of object class ?

668