import java.lang.reflect.Field; public class ItsFinallyTrue { public final boolean dream1 = false; public final Boolean dream2 = false; @Override public String toString() { return dream1 + "-" + dream2; } public static void main(String[] args) throws IllegalAccessException, SecurityException { ItsFinallyTrue dreamer = new ItsFinallyTrue(); System.out.println(dreamer); for (Field dream : dreamer.getClass().getDeclaredFields()) { dream.setAccessible(true); dream.set(dreamer, true); } System.out.println(dreamer); } }What will happen if you run this code?
(A) It throws
IllegalAccessException
(B) It throws
SecurityException
(C) It prints
false-false
and false-false
(D) It prints
false-false
and false-true
(E) It prints
false-false
and true-true