Skip to content

Commit

Permalink
Update java-quiz.md (Ebazhanov#2727)
Browse files Browse the repository at this point in the history
Q100
Vactor Class extend Collection interface, so it's right option and the correct answer is HashMap class beacuse it implement Map interface
  • Loading branch information
aabouzaid96 authored Dec 6, 2021
1 parent 8ea40dd commit 5f29975
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions java/java-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -1349,10 +1349,12 @@ public class Main {

#### Q100. Which class does not implement the java.util.Collection interface?

- [x] java.util.Vector
- [ ] java.util.Vector
- [ ] java.util.ArrayList
- [ ] java.util.HashSet
- [ ] java.util.HashMap
- [x] java.util.HashMap

**Explanation**: HashMap class implements Map interface.

#### Q101. You have a variable of named `employees` of type `List<Employee>` containing multiple entries. The `Employee` type has a method `getName()` that returns te employee name. Which statement properly extracts a list of employee names?

Expand Down

0 comments on commit 5f29975

Please sign in to comment.