What is the difference between poll and remove method in queue

They both remove object from queue but if you poll and it gets fails the null is returned and in case remove it throws an exception.

Comments

Popular posts from this blog

Integration Control

Zensar Java interview questions