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

1) Interface Map does not contain any methods that return Streams.
2) The Function interface has methods apply (abstract), compose (abstract), andThen (default) and identity (static).
3) If one class inherits the same default method from two interfaces, the class must over ride that method; otherwise, the compiler does not know which method to use, so it generates a compilation error


1) True
2) False. compose is a default method. A functional interface can have only one ab- stract method.
3) True

Computer Science & Information Technology

You might also like to view...

Create an application that mimics the functionality of a vending machine. Your application’s GUI has been completed for you (Fig. 14.18). Store the prices of each item for sale in the vending machine in an instance variable. Also, add the code that will display the price of an item when the item’s number has been entered and Enter JButton has been clicked.




a) Copying the template to your working directory. Copy the C:Exam- plesTutorial14ExercisesVendingMachine2 directory to your C:SimplyJava directory.
b) Opening the template file. Open the VendingMachine.java file in your text editor. c) Adding instance variables. After the last GUI component is declared (line 53),
declare private String instance variables to store the prices of each of the snacks.
Each String should be in the form "$0.00" where the price of the snack is substi- tuted for the zeros. The variables’ names and prices should be snackPrice1 ("$1.25"), snackPrice2 ("$0.50"), snackPrice3 ("$1.25"), snackPrice4 ("$1.00"), snackPrice5 ("$1.25"), snackPrice6 ("$1.25"), snackPrice7 ("$1.00") and snackPrice8 ("$0.50").
d) Coding the enterJButtonActionPerformed method. Locate the enterJButtonAc- tionPerformed method. In this method, store the user input entered in the inputJ- TextField. Then, use a switch statement to di

Computer Science & Information Technology

The comment indicator appears on a slide in ________ view

Fill in the blank(s) with correct word

Computer Science & Information Technology

A SmartArt graphic is a(n) ________ representation of your information and ideas

Fill in the blank(s) with correct word

Computer Science & Information Technology

?____ is probably the most famous wiki in the world.

A. ?Wikipedia B. ?Google Wiki C. ?Wikiworld D. ?Wikibook

Computer Science & Information Technology