nerdexam
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

1Z0-815 question #88 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)
  • A
    13% (8)
  • B
    3% (2)
  • C
    78% (49)
  • D
    2% (1)
  • E
    5% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice