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 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/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