devxlogo

How to Define a SynchronousQueue in Java

How to Define a SynchronousQueue in Java

For defining a SynchronousQueue in Java, we need the BlockingQueue interface as follows:

BlockingQueue queue = new SynchronousQueue();

devx-admin

Share the Post: