Question 1  of   20

Stack class represents

A. a collection of objects that is maintained in sorted order.
B. a first-in-first-out (FIFO) collection of objects.
C. a collection of key/value pairs.
D. a last-in-first-out (LIFO) collection of objects.