Given: Which three are valid?()
A.p0 = p1; B.p1 = p2; C.p2 = p4; D.p2 = (ClassC)p1; E.p1 = (ClassB)p3; F.p2 = (ClassC)p4;
Given: What is the result?()
A.Compilation fails. B.Cannot add Toppings C.The code runs with no output. D.A NullPointerException is thrown in Line 4.
A.Hello B.Hello World C.Compilation fails. D.Hello World 5 E.The code runs with no output. F.An exception is thrown at runtime.