Java Phases Flashcards

1
Q

2 parts of a java program

A

Package and Main method

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

Accessible to all

A

Public Access Modifier

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

Accessible within class

A

Private Access Modifier

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

Accessible within members of package and inherits to be accessed

A

Protected Access Modifier

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

Accessible within the package

A

Default/ Blank Access Modifier

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

Structure of a method

A

Access modifier - return type - method name - parameters -body

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

Structure of for loop

A

(initialization; condition; iteration)

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

Structure of Instantiation

A
Person name = new  Person();
     |         |            |          |
class - object - key - Constructor
                        word
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Phases of Java

A

Text Editor - Test Java - Java Compiler - test class - Java interpreter

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

3 ways to comment

A

// - Single Line
/* * / - Multi-line
/** * / - Documentation

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

Statement are always terminated by

A

Semicolon (;)

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

Blocks statement are bounded by

A

Brackets ({})

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

Identifiers

A
  • Field variables
  • Local variables
  • Parameters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Structure of a variable

A

< datatype> < names> [= initiating value]

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

Must be nouns and begin with lowercase

A

Variables

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

Must begin with Uppercase

A

Classes

16
Q

Verb, Must begin with lowercase

A

Method

17
Q

literals tokens that do not change

A
  • Boolean Literals
  • Integer Literals
  • Floating Literals
  • Character Literals
  • Java Literals
18
Q

Same method name
Different number of parameters
Different return type

A

Method overloading

19
Q

a concept in Java where a class can have multiple constructors with different parameter lists.

A

Constructor Overloading