Oracle
1Z0-815 · Question #88
Given: Which two statements are true if the method is added to Bar? (Choose two.)
The correct answer is C. public <T> List<T> foo(Collection<T> arg) { ... } overrides Foo.foo. F. public <T> Iterable<T> foo(Collection<T> arg) { ... } overrides Foo.foo. See the full explanation below for the reasoning.
Question
Given:
Which two statements are true if the method is added to Bar? (Choose two.)
Exhibit
Options
- Apublic Collection<String> foo(Collection<String> arg) { ... } overrides Foo.foo.
- Bpublic <T> Collection<T> foo(Stream<T> arg) { ... } overloads Foo.foo.
- Cpublic <T> List<T> foo(Collection<T> arg) { ... } overrides Foo.foo.
- Dpublic <T> Collection<T> foo(Collection<T> arg) { ... } overloads Foo.foo.
- Epublic <T> Collection<T> bar(Collection<T> arg) { ... } overloads Foo.foo.
- Fpublic <T> Iterable<T> foo(Collection<T> arg) { ... } overrides Foo.foo.
How the community answered
(63 responses)- A13% (8)
- B3% (2)
- C78% (49)
- D2% (1)
- E5% (3)
Community Discussion
No community discussion yet for this question.
