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

How many functional interfaces does java 8 have?

604


What is a singleton factory?

508


What is set and get methods in java?

539


How many arguments can a method have java?

540


worst case complexities of Quick sort and Merge sort.

599






What differences exist between iterator and listiterator?

567


Explain about collection interface in java?

542


How do you sort a string in alphabetical order in java?

527


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

502


What are the three types of design patterns?

507


How do you check if two given string are anagrams?

551


Can inner class have constructor?

545


Explain the importance of throws keyword in java?

565


What is primitive array?

513


How do you reverse a word in java?

525