Podcast
Questions and Answers
A class in a package can be used in any program or class definition without an import statement.
A class in a package can be used in any program or class definition without an import statement.
False (B)
The void keyword indicates that a method will return a value.
The void keyword indicates that a method will return a value.
False (B)
Local variables declared within a method definition are accessible from the rest of the class.
Local variables declared within a method definition are accessible from the rest of the class.
False (B)
Information hiding facilitates re-use of object components.
Information hiding facilitates re-use of object components.
If an instance variable is private, its name can be accessed outside of the class definition.
If an instance variable is private, its name can be accessed outside of the class definition.
Encapsulation refers to the mechanism of exposing all object components for external access.
Encapsulation refers to the mechanism of exposing all object components for external access.
An object's attributes define its behaviors.
An object's attributes define its behaviors.
A class is a blueprint for defining objects of the same data type.
A class is a blueprint for defining objects of the same data type.
Inheritance is a way to ensure each class has unique properties.
Inheritance is a way to ensure each class has unique properties.
Interfaces specify private methods in a class.
Interfaces specify private methods in a class.
The extends keyword is used to apply interfaces between classes.
The extends keyword is used to apply interfaces between classes.
A package is a collection of unrelated classes grouped together into a folder.
A package is a collection of unrelated classes grouped together into a folder.