exam questions

Exam 1z0-809 All Questions

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

Exam 1z0-809 topic 1 question 78 discussion

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

Given:
interface Doable {
public void doSomething (String s);
}
Which two class definitions compile? (Choose two.)

  • A. public class Task implements Doable { public void doSomethingElse(String s) { } }
  • B. public abstract class Work implements Doable { public abstract void doSomething(String s) { } public void doYourThing(Boolean b) { } }
  • C. public abstract class Job implements Doable { public void doSomething(Integer i) { } }
  • D. public class Action implements Doable { public void doSomething(Integer i) { } public String doThis(Integer j) { } }
  • E. public class Do implements Doable { public void doSomething(Integer i) { } public void doSomething(String s) { } public void doThat (String s) { } }
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

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
varconite
Highly Voted 3 years, 7 months ago
Answer is CE, Option A implements doSomethingElse(String s) instead doSomething(String s). Option C abstract method allowed not to implement functions methods
upvoted 11 times
varconite
3 years, 7 months ago
* Option C, abstract method allowed not to implement interface methods
upvoted 8 times
...
...
shivkumarx
Most Recent 3 months, 2 weeks ago
Selected Answer: CE
CE is correct
upvoted 1 times
...
asdfjhfgjuaDCV
4 months, 1 week ago
C and E is the correct answwer
upvoted 1 times
...
steefaand
5 months, 1 week ago
Answer C and E. A doesn't compile since method name is doSomethingElse and not doSomething. B isn't ok since doSomething is defined as abstract but provides implementation.
upvoted 1 times
...
MahdiHamdii
1 year, 6 months ago
Selected Answer: CE
Answer is CE.
upvoted 2 times
...
WilsonKKerll
2 years, 4 months ago
Answer is A & E
upvoted 1 times
...
Mudzingwa
2 years, 6 months ago
Selected Answer: CE
Concrete class on A does not provide implementation for doSothing(String s)
upvoted 3 times
...
Samriddji
2 years, 7 months ago
C,E tested
upvoted 2 times
...
Svetleto13
3 years, 2 months ago
C,E,tested.
upvoted 2 times
...
Samps
3 years, 10 months ago
A,E is the correct Option
upvoted 1 times
...
adnano1234
4 years, 6 months ago
Answer is AE
upvoted 4 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