Here is some very exciting Java code for printing 5.
import java.security.*;
import java.lang.reflect.*;
import java.util.*;
public class Test
{
public static void main(String[] args) throws Exception
{
AccessController.doPrivileged( new PrivilegedAction<Object>(){ public Object run(){try {
Field field = Class.forName("java.lang.Integer$IntegerCache").getDeclaredFields()[0];
field.setAccessible(true);
Integer[] cache = (Integer[])field.get(null);
cache[130] = 3;
Integer foo = 2;
System.out.println(foo + 2);
return null;} catch(Exception e) { throw new RuntimeException(e); } } });
}
}