Test
Career Fair
Preguntas del test (1)
1Java. Which of the single options below best describes the output of this program?
public static void main(String[] args) {
String s1 = new String("Test");
String s2 = "Test";
if (s1 == s2) {
System.out.println("Same");
}
if (s1.equals(s2)) {
System.out.println("Equals");
}
}- APrints "Same"
- BPrints "Equals"
- CPrints "Same" followed by "Equals"
- DPrints nothing
Información
- Descripción
- Test sobre Career Fair, creado por Kashish Tayal el 06/09/2017.
- Autor
- Kashish Tayal
- Idioma
- English
- Visitas
- 0
- Valoración
- Aún sin valoraciones Valora este test