digital-garden/notes/Собеседования/Задачи/Задача 2.md

16 lines
338 B
Markdown
Raw Normal View History

2024-06-13 21:01:37 +03:00
---
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);
```
***