David Liao

Greenhorn
+ Follow
since Jan 01, 2019
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by David Liao

Hi,

I'm studying for the OCP. From what I understand, a Deque has three methods that can remove an element from the left of a deque:
1. poll() - returns null for an empty list
2. remove() - throws an exception for an empty list
3. pop() - throws an exception for an empty list

Is there a difference between remove() and pop() when dealing with a Deque?

Thanks