fork(2) download
  1. import java.lang.reflect.Field;
  2.  
  3. public class Main {
  4. public static void main(String[] args) throws Exception {
  5. Class cache = Integer.class.getDeclaredClasses()[0];
  6. Field c = cache.getDeclaredField("cache");
  7. c.setAccessible(true);
  8. Integer[] array = (Integer[]) c.get(cache);
  9. array[132] = array[133];
  10.  
  11. Integer a = 4;
  12. Integer b = 5;
  13.  
  14. System.out.println(a.equals(b));
  15. }
  16. }
  17.  
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
true