exam questions

Exam 1z0-809 All Questions

View all questions & answers for the 1z0-809 exam

Exam 1z0-809 topic 1 question 61 discussion

Actual exam question from Oracle's 1z0-809
Question #: 61
Topic #: 1
[All 1z0-809 Questions]

Given:
public interface Moveable<Integer> {
public default void walk (Integer distance) {System.out.println("Walking");) public void run(Integer distance);
}
Which statement is true?

  • A. Moveable can be used as below: Moveable<Integer> animal = n - > System.out.println("Running" + n); animal.run(100); animal.walk(20);
  • B. Moveable can be used as below: Moveable<Integer> animal = n - > n + 10; animal.run(100); animal.walk(20);
  • C. Moveable can be used as below: Moveable animal = (Integer n1, Integer n2) -> n+ n2; animal.run(100); animal.walk(20);
  • D. Movable cannot be used in a lambda expression.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jduarte
Highly Voted 3 years, 10 months ago
Answer A. Tested
upvoted 7 times
...
6c84cb9
Most Recent 5 months, 3 weeks ago
Answer is A.
upvoted 1 times
...
asdfjhfgjuaDCV
11 months ago
A is the answer tested
upvoted 1 times
...
WilsonKKerll
2 years, 10 months ago
Answer is A.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago