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 / ejp

Throwing the exception exits the synchronized{} block so
that answer doesn't actually add anything.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How the metacharacters are different from the ordinary characters?

562


Can an interface extend another interface?

592


What are desktop procedures?

556


which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com

3186


Describe the term diamond problem.

573






Explain exception chaining in java?

602


What is the difference between preemptive scheduling and time slicing in java programming?

529


What do you understand by garbage collection in Java? Can it be forced to run?

548


What are the advantages of assembly language?

495


What are variable names?

524


how does multithreading take place on a computer with a single cpu? : Java thread

688


List some important features of java 10 release?

511


What is consumer in java?

520


Define locale.

586


Explain tree set and its features?

595