Queue is an interface in java, you can not do that.
Instead you have two options:
option1:
Queue<Integer> Q = new LinkedList<>();
option2:
Queue<Integer> Q = new ArrayDeque<>();
I recommend using option2 as it is bit faster than the other