logo

Crowdly

Was wird bei folgendem Beispiel ausgegeben?

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Was wird bei folgendem Beispiel ausgegeben?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

/** ...

*/

public class

EinBeispiel {

public static void

main(String[] args) {

String s1 =

"YZ"

;

String s2 =

"XYZ"

;

String s3 = s2

;

if

(s2 == s3) {

System.

out.println("Gleich"

);

}

else

{

System.

out.println("Ungleich"

);

}

}

}

More questions like this

Want instant access to all verified answers on elearning.tgm.ac.at?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!