4 questions
Currently, I am writing an if sentence as below. By the way, I want to compare the word WORDS with the corresponding objects and the equivalents of a specific word, is there a way to make it simpler?O...
What should be considered when overriding equals() and hashCode()?
public static void main(String[] args) { int[] array1 = new int[4]; int[] array2 = new int[7];Arrays.equals(array1,array2);}I don't get an error even if I do this, but I'm not sure if I compared it pr...
I'm studying Java with googling, and I saw a post saying that it's better to use the same as you inherited instead of overriding the equals. But if you want to override the equals, I told you to only ...
© 2024 OneMinuteCode. All rights reserved.