16 lines
338 B
Markdown
16 lines
338 B
Markdown
|
---
|
||
|
parents:
|
||
|
- "[[Вопросы для собеседование Java]]"
|
||
|
---
|
||
|
```java
|
||
|
final String s1 = "test";
|
||
|
final String s2 = "test";
|
||
|
final String s3 = new String("test");
|
||
|
final String s4 = "te" + "st";
|
||
|
|
||
|
System.out.println(s1 == s2);
|
||
|
System.out.println(s1 == s3);
|
||
|
System.out.println(s2 == s4);
|
||
|
System.out.println(s3 == s4);
|
||
|
```
|
||
|
***
|