Risk in Java