What is the result?()
A.test B.null C.An exception is thrown at runtime. D.Compilation fails because of an error in line 1. E.Compilation fails because of an error in line 4. F.Compilation fails because of an error in line 5.
Which code, inserted at line 14, allows the Sprite class to compile?()
A.Direction d = NORTH; B.Nav.Direction d = NORTH; C.Direction d = Direction.NORTH; D.Nav.Direction d = Nav.Direction.NORTH;
Given a correctly compiled class whose source code is: Assume that the class file is located in /foo/com/sun/sjcp/, the current directory is /foo/, and that the classpath contains "." (current directory). Which command line correctly runs Commander?()
A.java Commander B.java com.sun.sjcp.Commander C.java com/sun/sjcp/Commander D.java -cp com.sun.sjcp Commander E.java -cp com/sun/sjcp Commander