Given the following class, which of these alternatives are valid ways of referring to the class from outside of the package net.mypkg?
package net.mypkg; public class Main { // ... }
Select the two correct answers.
(c) and (d)
A class or interface name can be referred to by using either its fully qualified name or its simple name.
Using the fully qualified name will always work, but in order to use the simple name it has to be imported.
By importing net.mypkg.* all the type names from the package net.mypkg will be imported and can now be referred to using simple names.
Importing net.* will not import the subpackage mypkg.