Card 13 / 32: Given the following directory structure: org | -- Robot.class | | -- ex |-- Pet.class | |-- why |-- Dog.class And the following source file: class MyClass { Robot r; Pet p; Dog d; } Which statement(s) must be added for the source file to compile? (.)
A)
import org.*;
B)
import org.ex.*;
C)
package org.*;
D)
package org.ex.why;
E)
package org.ex.*;
Answer:
A) import org.*;
B) import org.ex.*;
D) package org.ex.why;
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|