You can if using Open J9, Azul, or the Android cousin, remmeber Java is not one trick pony implementation.