Interview Question

Senior Software Engineer - Test Automation Interview

-

LTI

Public int compareTo(object o) { Employee emp = (Employee)o; return this.id - e.id; }

AnswerAdd Tags

Interview Answers

3 Answers

0

Output should be 0. Since compareTo() implements Comparable interface.

Anonymous on

0

Have you received offer.?

Anonymous on

0

Have you received offer?

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.