What is the meaning of ( ) in the following lambda?
() -> System.out.println("Welcome to lambdas!")
a. the lambdas parameters are inferred
b. the lambdas parameters are supplied by a method reference
c. the lambda has an empty parameter list
d. the given expression is not a valid lambda
c. the lambda has an empty parameter list.
You might also like to view...
Which of the following is true about bulleted lists?
a. The items in the list are in descending order of importance. b. The items in the list are in sequential order. c. The items in the list can be introduced in any order. d. The items in the list are in chronological order.
Method onCreateView is called after onCreate to build and return a View containing the Fragment’s GUI. This method receives a(n) ________, which you’ll use to programmatically inflate a Fragment’s GUI from the components specified in a predefined XML layout.
a. Inflater b. GUICreator c. GUIInflater d. LayoutInflater