OnJava8-Examples/lowlevel/ReOrdering.java

19 lines
453 B
Java
Raw Normal View History

2017-01-18 16:10:15 -08:00
// lowlevel/ReOrdering.java
// (c)2021 MindView LLC: see Copyright.txt
2017-01-18 16:10:15 -08:00
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
public class ReOrdering implements Runnable {
int one, two, three, four, five, six;
volatile int volaTile;
@Override public void run() {
2017-01-18 16:10:15 -08:00
one = 1;
two = 2;
three = 3;
volaTile = 92;
int x = four;
int y = five;
int z = six;
}
}