BASIC JAVA Flashcards

1
Q

A class that holds functions to display out in a terminal or command prompt application.

A

System.out

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A class used to read input passed into a Java program.

A

Scanner

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

are blueprints or templates for objects in Java. They detail the general structure and data for an object including information such as properties, attributes, and method behavior

A

Classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

prints to the same line when a program is running.

A

System.out.print

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

in Java are objects that can hold a sequence of characters contained within a pair of double quotes (“). It is not a primitive data type.

A

Strings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

are used whenever there’s a need to store a piece of data. A ____ contains data that can be used in the program elsewhere.

A

Variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Using ___ also ensures code re-usability since it can be used to replace the same value in multiple places.

A

Variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

To declare a variable in Java, any of these three keywords can be used along with a variable name:

A

The data type.
The variable name.
The value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Are the ones that are declared within a method or a block of code and are only accessible within that scope:

A

Local Variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Are the ones that are declared within a class but outside the scope of a method. Each instance of the class includes a unique version of the variable:

A

Instance Variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Are the ones that belong to a class rather than its instances. In the case of these variables, only one copy is created in a class and distributed among all instances of that particular class:

A

Static Variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly