Question du test Java - Les bases

Comparer deux strings en Java

Très facile
String str1 = "hello";
String str2 = "HELLO";
System.out.println(str1.equals(str2));

Quel est le résultat de la comparaison en Java ?

Auteur: EL MostafaStatut : PubliéeQuestion passée 62 fois
Modifier
0
Évaluations de la communauté
developer avatar
Manuvai
04/04/2024
Hi @El Mostafa, could you please * Insert the "```" section before your question * add the translation of : - the question - the possibilities of answer - the explanation ?