Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
17 Cards in this Set
- Front
- Back
You wantel to process a text file called "Input.text" using scanner object. What line of code correctly create the necessary Scanner object? |
Scanner Inputting = new Scanner (new File ("input.text"); |
|
T or F a scanner object can use delimiters other than a space |
T |
|
A __ diagram helps us visualizer the contents of and relationships among the classes of a program. |
UML |
|
Which of the following object-oriented principles refers to the fact that an object should have its data guarded from inappropriate access? A) encapsulation B) inheritance C) polymorphism D) instance variables E) methods |
A) encapsulation |
|
When applied to instance variables, the ___ visibility modifier enforces encapsulation |
Private |
|
Which method does not have any return type (not even a void return type)? |
Constructors |
|
Which of the following headers is most likely a header for a mutation method? A) public int getAge ( ) B) public double computeSalary ( ) C) public person ( ) D) public void setAge (int newAge) E) none of these are headersmor a mutation method |
D) public void setAge (int newAge) |
|
A ___ variable is shared among all instances of a class |
Static |
|
__ parameters are the values that are used when calling a method |
Actual |
|
The __ reference always refers to the currently executing object |
this |
|
A method that has multiple definitions is an ___ method |
Overloaded |
|
An ___ is a step by stepbprocess for solving a problem |
Algorithm |
|
All methods (with the exception of constructors) must specify a return type. What is the return type for a method that does not return any values? |
Void |
|
Methods that can be called directly through the class name and do not need to have an object instantiated are called ___. |
Static |
|
An ___ object is one that is made up,at least in part, of other objects. |
Aggregate |
|
If a service is so complex that it cannot be reasonably implemented using one method, it is often helpful to decompose it to make use of ___ support methods. |
Private |
|
The versions of an overloaded method are distinguished by ___. |
The number and type of their parameters |