GoConqr has a new look! Let us know what you think.

Quiz

Java comparators: identifying valid comparator methods

Armin Molnar 1 question

Take the quiz

Questions in this quiz (1)

  1. 1Melyik lehet összehasonlító(comparator)?
    1. Amindkettő
    2. Bprivate boolean isEqual(Vehicle v1, Vehicle v2){ returnb v1.getAge() = v2.getAge()}
    3. Cegyik sem
    4. Dpublic boolean isEqual(Vehicle other) {return this.getAge() == v2.getAge()}

Information

Description
Quiz on Untitled, created by Armin Molnar on 21/03/2022.
Language
English
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

More on Classes and Objects

Feedback

What is it about?

What do you think of the new look?

How do you like it?