Page 887 - AP Computer Science A, 7th edition
P. 887
2. (B) The Math.sqrt method must be invoked on a primitive type double, which is the reason d.doubleValue() is used. (Note that auto-unboxing would apply if you failed to use d.doubleValue(), and used just d instead.) A correct segment must create a Double object using new, which eliminates segment III.