False
To program in Java we must have an IDE (true/false)
compiled, interpreted
Java program is ____ and ____ to native machine code
attributes, methods
In the context of Object oriented programming, classes have ____ and _____
false
Objects are templates for Classes (true/false)
true
Objects are instances of classes and objects have an identity (true/false)
Writing, compilation, interpretation, execution
Steps for running a java program
true
The file name must match the name of the public class defined in a file (true/false)
Aggregation
If a class has an attribute of which is another class, the relationship is called:
implements
____ is the keyword used to connect classes and interfaces
Private, Protected, "Default", Public
The order of access modifiers from most restrictive to not restrictive
Encapsulation
Interfaces are provided for clients to access a component. Interfaces ensure a proper ____ of the component
allows
List ______ duplicate entries
does not allow
Set ____ duplicates
final
_____ is the keyword if you do not want a class to be inherited by others
Packages
______ are used to organize related classes
"has a"
Aggregation in OOAD defines ____ relationship between 2 classes
"is a"
Inheritance in OOAD defines ____ relationship between 2 classes
true
A superclass implements an interface in Java (true/false)
super()
Keyword to invoke the constructor of the superclass
Overriding
______ is termed as creating a new method with the same signature as a method in the superclass
Use case diagram
To describe the interactions between actors and use cases in a system
Association
Which type of relationship in a use case diagram indicates that an actor is involved in a use case?
Arrays
Not a part of the Java collection framework
Inheritance
The method to create hierarchy between classes by inheriting other classes
Abstract classes
base class used to provide common interface/behavior for its subclasses; cannot be instantiated
Abstract methods
Methods declared in an abstract class do not have any implement; signature of a method
extends
Keyword to implement inheritance
Public
Accessible to everyone
Default
Protected access; only access to classes in a current package
Protected
Can only be accessed within the class or classes that are inheriting from classes
Private
Can only be accessed within the class
Constructors
Methods used to initiate a class and its attribute
Static
Creates one copy for the entire scope (class)
Final
Prohibits overriding of method and extensions of classes
Interfaces
A collection of abstract methods and static final variables that defines a set of behaviors for a class to implement;
Interfaces
Utilized in polymorphism to set up methods to be overridden later with actual class instantiations
Polymorphism
Allows objects of different classes to be treated as if they were objects within the same class
Overloading
Same method name, different parameters
Overriding
Same method but subclass overwrites superclass's method
List
Prioritizes the order of elements, contains null and duplicates
Sets
Order does not matter and can only have unique values
Sets
Allows a null
Maps
key-value pairs, keys cannot be duplicates but values can