Given the class below,
public class ClassOne { public static void main(String... args) { System.exit(1); } }
The following
You can't ignore it per se, but you can prevent it from terminating the JVM via SecurityManager. Take a look at this question for detailed code example.