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);
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.
jduarte
Highly Voted 3 years, 10 months ago6c84cb9
Most Recent 5 months, 3 weeks agoasdfjhfgjuaDCV
11 months agoWilsonKKerll
2 years, 10 months ago