OnJava8-Examples/lowlevel/ReOrdering.java

20 lines
455 B
Java
Raw Normal View History

2017-01-18 16:10:15 -08:00
// lowlevel/ReOrdering.java
// (c)2017 MindView LLC: see Copyright.txt
// 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() {
one = 1;
two = 2;
three = 3;
volaTile = 92;
int x = four;
int y = five;
int z = six;
}
}