Java tutorial
public class Main { public static void main(String[] args) { SecurityManager s = System.getSecurityManager(); if (s == null) { System.out.println("SecurityManager not established!"); } } }