多项选择题
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;
What is the result?() A.b,3B.b,8C.b,13D.f,3E.f,8F.f,13G...
单项选择题
What is the result?()
A.b,3 B.b,8 C.b,13 D.f,3 E.f,8 F.f,13 G.Compilation fails. H.An exception is thrown at runtime.
Given two files, GrizzlyBear.java and Salmon.java: If ...
Given two files, GrizzlyBear.java and Salmon.java: If both classes are in the correct directories for their packages, and the Mammal class correctly defines the findSalmon() method, which change allows this code to compile?()
A.add import animals. mammals.*; at line 2 in Salmon.java B.add import animals.fish.*; at line 2 in GrizzlyBearjava C.add import animals.fish.Salmon.*; at line 2 in GrizzlyBear.java D.add import animals. mammals.GrizzlyBear*; at line 2 in Salmon.java
And MainClass exists in the /apps/com/company/applicati...
And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to "." (current directory).Which two java commands entered at the command line will run MainClass?()
A.java MainClass if run from the /apps directory B.java com.company.application.MainClass if run from the /apps directory C.java -classpath /apps com.company.application.MainClass if run from any directory D.java-classpath . MainClass if run from the /apps/com/company/application directory E.java -classpath /apps/com/company/application:. MainClass if run from the /apps directory F.java com.company.application.MainClass if run from the /apps/com/company/application directory