Why are we not getting an error?

When we defined the queue size as 5, but tried to push 6th element, shouldn’t we get compilation error?

@isingh you are defining the queue of particular size?
i think it will not give any error though it is not needed to declare the size.