Exam 6: A First Look at Classes
Exam 1: Introduction to Computers and Java53 Questions
Exam 2: Java Fundamentals52 Questions
Exam 3: Decision Structures58 Questions
Exam 4: Loops and Files56 Questions
Exam 5: Methods56 Questions
Exam 6: A First Look at Classes58 Questions
Exam 7: Arrays and the Arraylist Class63 Questions
Exam 8: A Second Look at Classes and Objects52 Questions
Exam 9: Text Processing and More About Wrapper Classes62 Questions
Exam 10: Inheritance64 Questions
Exam 11: Exceptions and Advanced File Io59 Questions
Exam 12: Java-Fx: Gui Programming and Basic Controls42 Questions
Exam 13: Java-Fx: Advanced Controls40 Questions
Exam 14: Java-Fx: Graphics, Effects, and Media40 Questions
Exam 15: Recursion23 Questions
Exam 16: Databases40 Questions
Select questions type
The public access specifier for a field indicates that the field may not be accessed by statements outside the class.
Free
(True/False)
4.8/5
(34)
Correct Answer:
False
The scope of a public instance field is __________.
Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
D
The __________ package is automatically imported into all Java programs.
(Multiple Choice)
4.9/5
(33)
Methods that operate on an object's fields are called __________.
(Multiple Choice)
4.8/5
(46)
The following statement is an example of __________.
import java.util.*;
(Multiple Choice)
4.9/5
(34)
Which symbol indicates that a member is public in a UML diagram?
(Multiple Choice)
4.8/5
(31)
When a local variable in an instance method has the same name as an instance field, the instance field hides the local variable.
(True/False)
4.8/5
(39)
A method that stores a value in a class's field or in some other way changes the value of a field is known as a mutator method.
(True/False)
4.8/5
(36)
Two or more methods in a class may have the same name as long as __________.
(Multiple Choice)
4.9/5
(36)
Which of the following statements will create a reference, str, to the String "Hello, World"?
(Multiple Choice)
4.9/5
(44)
The term "no-arg constructor" is applied to any constructor that does not accept arguments.
(True/False)
4.8/5
(41)
After the header, the body of the method appears inside a set of __________.
(Multiple Choice)
4.9/5
(38)
When you work with a __________, you are using a storage location that holds a piece of data.
(Multiple Choice)
4.9/5
(37)
What does the following UML diagram entry mean? + setHeight(h : double) : void
(Multiple Choice)
4.9/5
(36)
To indicate the data type of a variable in a UML diagram, you enter __________.
(Multiple Choice)
4.9/5
(34)
For the following code, which statement is not true?
public class Sphere
{
Private double radius;
Public double x;
Private double y;
Private double z;
}
(Multiple Choice)
4.9/5
(40)
Java allows you to create objects of the __________ class in the same way you would create primitive variables.
(Multiple Choice)
4.9/5
(38)
Showing 1 - 20 of 58
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)