Synchronized


Source code

1class Synchronized {
2
3 synchronized void m1() {
4 this.hashCode();
5 }
6
7 void m2() {
8 synchronized (this) {
9 this.hashCode();
10 }
11 }
12
13}

Bytecode



Java compiler version: 21
Other examples
Main page