Java Syntax Flashcards

1
Q

argument

A

pieces of info passed into a method

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

method syntax

A

.method(): dot separates the method from class/object it references

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

object syntax

A

class.object: dot separates a specific object being identified by its class

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

.println()

A

built in method that prints the argument passed into it and advances insertion point to next line for subsequent output

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

.print()

A

built in method that prints the argument passed into it and doesn’t advance insertion point subsequent output is in the same line as current output

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

.out

A

object of built in print stream class which is subclass of system to which several methods, including println(), belong

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

.print()

A

built in method that prints the argument passed into it and doesn’t advance insertion point subsequent output is in the same line as current output

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

“public class”

A

keywords used to initiate the definition of a new class

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

System

A

built-in java class

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

conditions for class identifier

A

1) must begin with character that is either a letter of an alphabet, an “”, or “$”
2) can’t be a reserved keyword or reserved word identifying a primitive value
3) can only contain characters, digits, “
”, or “$”

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

Pascal Case

A

convention for capitalizing the first letter of each sub-word in a compound word identifier

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

camel case

A

convention for capitalizing first letter of subsequent sub0words of compound word identifier

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

access specifier

A

defines the circumstances under which a class can be accessed and the other classes that have the right to use a class

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

class header

A

line that initiates the defining of a new class, the access it allows, and the identifier it can be referenced by

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

class body

A

the attributes and methods that define the class

  • inside curly brackets
  • has line spacing syntax rules
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

method header

A

line that defines the accessibility as well as the identifier for a method defined for a class.

17
Q

“void”

A

key word that is used in a method header to indicate that the method being defined does not return a value when it is called

18
Q

“static”

A

keyword that