Given the following class, which of these are valid ways of referring to the class from outside of the package net.basemaster ?
package net.basemaster; public class Base { // ... }
Select the two correct answers.
By simply referring to the class as Base .
By simply referring to the class as basemaster.Base .
By simply referring to the class as net.basemaster.Base .
By importing with net.basemaster.* and referring to the class as Base .
By importing with net.* and referring to the class as basemaster.Base .
Which one of the following class definitions is a valid definition of a class that cannot be instantiated ?
Select the one correct answer.
class Ghost { abstract void haunt(); }
abstract class Ghost { void haunt(); }
abstract class Ghost { void haunt() {}; }
abstract Ghost { abstract void haunt(); }
static class Ghost { abstract haunt(); }
Which one of the following class definitions is a valid definition of a class that cannot be extended?
class Link { }
abstract class Link { }
native class Link { }
static class Link { }
final class Link { }
private class Link { }
abstract final class Link { }