How the threads are synchronized?

Answer Posted / dsr

By using wait(),notify and notifyall() methods in the code.

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is overloading and overriding in java?

661


What are the 4 types of characters?

545


What is the difference between error and an exception?

569


What is the major difference between linkedlist and arraylist?

510


What is the major drawback of internal iteration over external iteration?

588






What is the purpose of javac exe?

560


Explain the difference between serializable and externalizable in java?

539


In case of inheritance what is the execution order of constructor and destructor?

640


Does unicode support all languages?

522


What do you mean by formatting?

547


What is difference between overloading and overriding in java?

529


Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?

542


What is a variable declaration?

524


What is a dynamic array java?

519


What is the difference between length and length() method in java?

647