Oracle Java SE 8 Programmer II 1z0-809 Question # 52 Topic 6 Discussion

Oracle Java SE 8 Programmer II 1z0-809 Question # 52 Topic 6 Discussion

1z0-809 Exam Topic 6 Question 52 Discussion:
Question #: 52
Topic #: 6

Given:

public interface Moveable {

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 animal = n - > System.out.println(“Running” + n);animal.run(100);animal.walk(20);


B.

Moveable can be used as below:Moveable animal = n - > n + 10;animal.run(100);animal.walk(20);


C.

Moveable can be used as below:Moveable animal = (Integer n) - > System.out.println(n);animal.run(100);Moveable.walk(20);


D.

Movable cannot be used in a lambda expression.


Get Premium 1z0-809 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.