Home Segments Top Top Previous Next

6: Mainline

The Java virtual machine helps you to find errors, because the Java virtual machine performs runtime checks that complement the compile-time checks performed by all compilers. For example, when programs are about to access array elements that do not exist, the Java virtual machine displays an informative message and halts, thus catching a common programming error before a hard-to-debug crash occurs.