• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/45

Click to flip

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;

45 Cards in this Set

  • Front
  • Back
Each class declaration that begins with keyword ___ must be stored in a file that has exactly the same name as the class and ends with the .java filename extension.
public
Keyword ___ in a class declaration is followed immediately by the class’s name.
class
Keyword ___ requests memory from the system to store an object, then calls the corresponding class’s constructor to initialize the object.
new
Each [method] parameter must specify both a ___ and a ___.
type, name
By default, classes that are compiled in the same directory are considered to be in the same package, known as the ___ package.
default
Java provides two primitive types for storing floating-point numbers in memory: ___ and ___.
float, double
Variables of type double represent ___ floating-point numbers.
double precision
A class constructor is named the same as the class. (T/F)
T
Keyword public is an access ___.
modifier
Return type ___ indicates that a method will not return a value.
void
ProjectUI provides a simple way to prompt the user for input and to get a value entered by the user at runtime. (T/F)
T
Class String is in package ___.
java.lang
An ___ declaration is not required if you always refer to a class with its fully qualified class name.
import
A ___ number is a number with a decimal point, such as 7.33, 0.0975, 1000.12345.
floating-point
Variables of type float represent ___-precision floating-point numbers.
single
The format specifier ___ is used to output values of type float or double.
f
Types in Java are divided into two categories - ___ types and ___ types.
primitive, reference
By convention, method names begin with an uppercase first letter, and all subsequent words in the name begin with a capital first letter. (T/F)
F
An import declaration is not required when one class in a package uses another in the same package. (T/F)
T
Empty parentheses following a method name in a method declaration indicate that the method does not require any parameters to perform its task. (T/F)
T
A primitive-type variable can be used to invoke a method. (T/F)
F
Variables declared in the body of a particular method are known as instance variables and can be used in all methods of the class. (T/F)
F
Every method’s body is delimited by left and right braces ({ and }). (T/F)
T
Primitive-type local variables are initialized by default. (T/F)
F
Reference-type instance variables are initialized by default to the value null. (T/F)
T
Any class that contains the method public static void main(String[] args) can be used to execute an app. (T/F)
T
The number of arguments in the method call must match the number of parameters in the method declaration’s parameter list. (T/F)
T
Floating-point values that appear in source code are known as floating-point literals and are type float by default. (T/F)
F

A local variable is only known within its ___ ___.

defining context

An instance variable is known throughout the entire ___.

class

Parameters are indicated when you define a ___.

method

Parameters tell what is actually needed to ____ a method.

perform

Arguments are specified when ___ a method.

calling

Arguments are actual ___ sent to a method to fulfill its ___.

values, parameters

All variable names should start with a ___ letter.

lowercase

All method names should start with a ___ letter.

lowercase

All class names should start with a ___ letter.

uppercase

Naming conventions: After the first character, ___ ___ is used.

camel case

Local variables are not known outside their ___.

context

Local variables are declared within a ___.


method

Local variables can only be accessed within their ___.

method

The keyword new is used to reserve ___ in ___.

space, memory

The keyword new allows an object to be referred to by ___.

name

The keyword new creates an ___ of a ___.

instance, class

Once keyword new has been used to create an instance of a class, it is stored and available for use ___.

later