Какое утверждение верно?
class Test1 { public int value; public int hashCode() { return 42; } } class Test2 { public int value; public int hashCode() { return value ^ 5; } }
Класс Test1 не будет компилироваться.
Метод Test1 hashCode() более эффективен, чем метод Test2 hashCode().
Метод Test1 hashCode() менее эффективен, чем метод Test2 hashCode().
Класс Test2 не будет компилироваться.
Please log in or register to have a possibility to add comment.
Please log in or register to have a possibility to add comment.