UPS interview question

what is a Iterator in java?