exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 50 discussion

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

Which two interfaces are considered to be functional interfaces? (Choose two.)

  • A. @FunctionalInterface
    interface InterfaceC {
    public boolean equals(Object o);
    int breed(int x);
    int calculate(int x, int y);
    }
  • B. @FunctionalInterface
    interface InterfaceD {
    int breed(int x);
    }
  • C. @FunctionalInterface
    interface InterfaceE {
    public boolean equals(int i);
    int breed(int x);
    }
  • D. interface InterfaceA {
    int GERM = 13;
    public default int getGERM() { return GERM; }
    }
  • E. interface InterfaceB {
    int GERM = 13;
    public default int getGERM() { return get(); }
    private int get() { return GERM; }
    public boolean equals(Object o);
    int breed(int x);
    }
Show Suggested Answer Hide Answer
Suggested Answer: AC -
🗳️

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
19980829
3 weeks, 2 days ago
Selected Answer: BD
B : Only 1 abstract interface. D : No abstact interface.
upvoted 1 times
...
rey_911
4 months, 2 weeks ago
E will not pass as a functional interface since breed(int) is implicitly abstract and public. D can pass as a Functional Interface even if it does not have a single abstract method. B and D are correct.
upvoted 1 times
...
c47d39c
5 months, 3 weeks ago
B and E... C wrong because the equals() is considered as an abstract method since its parameters are not objects
upvoted 1 times
...
d7bb0b2
1 year, 1 month ago
ANSWERS IS B AND E: B: Has a only one SAM (single abstract method) and E: has a single abstract method, cause default and private methods are not considered abrascts, and EQUALS is a method from OBJECT neither tecnically considered abstract
upvoted 1 times
d7bb0b2
1 year ago
C: is a triky cause boolean equals(Objetct obj) must be the method from objetc that no count of SAM, every other implementation is count. boolean equals(Integer i); is count Fexmple
upvoted 1 times
...
...
tmuralimanohar
1 year, 6 months ago
Answer: BE
upvoted 1 times
...
Stavok
1 year, 7 months ago
Selected Answer: BE
B&E are correct TESTED
upvoted 1 times
...
RP384
1 year, 11 months ago
Selected Answer: BE
B and E are correct
upvoted 1 times
...
Ankit1010
1 year, 11 months ago
B and E are the correct answer
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