I have few questions on Java programming that needs to be answered. 1). variable
ID: 644390 • Letter: I
Question
I have few questions on Java programming that needs to be answered.
1). variable -> { code-block } is used when there is just one parameter in a method. True or False?
____________________________________________
2). When Java sees a lambda expression, it creates a named class object. True or False?
____________________________________________
3).
Consider the following code snippet:
if (e.getButton() == MouseButton.PRIMARY) {
circlePane.enlarge();
}
Which mouse button represents this circle enlangement action?
a). Left Button
b). Right Button
c). Middle Button
d). None of the above
____________________________________________
4).
Assume the following lambda expression:
btEnlarge.setOnAction(e -> circlePane.enlarge());
The above line means that onclicking the button objecte (btEnlarge), circlePane (containing a circle) will increase the radius.
True or False?
____________________________________________
Explanation / Answer
correct answer is 1)F 2)T 3)D 4)F