A Stack interface is defined and has an isEmpty() abstract method. What should this method return?

a) an int representing the number of items in the stack
b) a double representing the average of the values of the items in the stack
c) a String representing the contents of the items in the stack.
d) a boolean value representing whether the stack is empty or not.
e) the item that is at the top of the stack

d) a boolean value representing whether the stack is empty or not.

Computer Science & Information Technology

You might also like to view...

An ActiveX Control can be added that inserts a ________ button to control when code can be attached and initiates an action when clicked

Fill in the blank(s) with correct word

Computer Science & Information Technology

?Columns and column groups accept only CSS style properties to modify the column borders, background, width, and visibility.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology