For defining a SynchronousQueue in Java, we need the BlockingQueue interface as follows:
BlockingQueue queue = new SynchronousQueue();