int before = java.lang.System.currentTimeMillis();
Class.forName("havoc");
int after = java.lang.System.currentTimeMillis();
System.out.println("time for Class.forName(): " + (after-before) + "ms!");
The class "havoc" can only be loaded with worst-case complexity.