Hi Friends, I am beginner in java. what i know about
synchonized keyword is,If more that one 1 thread tries to
access a particular resource we can lock the method using
synchronized keyword. Then after that how the lock is
released and how next thread access that.Please explain with
example.
Answer Posted / jitu
ok i agree with u ejp
wat abt this ??
thread invokes wait() method..
is holding remains in synchronized block or it exists.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can an interface be final?
What does exp mean in math?
Explain the selection sort algorithm and state its time complexity?
What are peerless components?
Is hashset ordered?
Is 9 a prime number?
Is minecraft 1.15 out?
What is function and method in java?
What is hashmap in java?
Can java cast null?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
What is the concept of multithreading?
What is the purpose of format function?
How can you set the applet size?
What is the purpose of using java.lang.class class?