Skip to content

Commit 480d678

Browse files
committed
Update initialization.md
1 parent 7aa02e6 commit 480d678

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/static_fields/initialization.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class Main {
2828
static String name = "bob";
2929

3030
void main() {
31-
System.out.println(count); // 0
32-
System.out.println(name); // null
31+
System.out.println(count); // 5
32+
System.out.println(name); // bob
3333
}
3434
}
3535
```
@@ -48,8 +48,8 @@ class Main {
4848
}
4949

5050
void main() {
51-
System.out.println(count); // 0
52-
System.out.println(name); // null
51+
System.out.println(count); // 5
52+
System.out.println(name); // bob
5353
}
5454
}
5555
```

0 commit comments

Comments
 (0)