07-10 Chapter Intro to Java Flashcards

1
Q

What is a Just-In-Time Compiler?

A

It is a Java interpreter

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

What are the two stages of Java which provides platform independence?

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

Name some of Java Application Types?

A

Console, GUI, Applet, and Servlet Applications

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

How to you compile a project in Netbeans without running it?

A

You right-click on the project and select Build Command

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

What files is needed in order for javadocs to generate correctly?

A

overview.html (Information about project) & package.html (information about package)

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

What is OOP?

A

Object Oriented Programming

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

Name some benefits of OOP?

A
  1. increase software productivity 2. Reuse software across 3. Software maintainable 4. lower develop costs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the principles of OOP?

A
  1. Modularity, ease modification 2. modules coupling reduced: data and function combined, data encapsulate, creates ‘black box’ behavior
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What was the opposite of OOP programming?

A

Procedural programming

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

Where does all the java code reside?

A

a file called a class

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

What are classes?

A

they are like blueprints or cookie cutters and the actual cookie is the object

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

What is instantiation?

A

the construction of an object defined by a class

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

What is a field?

A

data item definition held in class or object

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

What is a method?

A

software procedure, operates on class or object data

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

What is a static field or method?

A

it exists in the class without instantiating

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

What is an instance?

A

field or method exists only when object class in constructed

17
Q

What does a class contain?

A
  1. instance of class 2. constructor method 3. static main method as entry point 4. static field and methods
18
Q

What does object contain?

A
  1. Instance or object fields 2. Methods
19
Q

Name some of the objects characteristics

A
  1. Behavior, defined my methods 2. State, invoking or calling methods 3. identity, unique name
20
Q

Relationship between classes: what is dependence?

A

“Uses a” Class A is dependent on Class B

21
Q

Relationship between classes: what is aggregation?

A

“Has-a” Class contains object of another class

22
Q

Relationship between classes: what is inheritance?

A

“Is-a” more specific class can inherit from a more generic class

23
Q

Study the following Class Diagram

A
24
Q

Study the following Class Anatomy

A
25
Q

How to create objects out of class

A
26
Q

Learn how to create a constructor with parameters

A
27
Q

Learn how to Code a method

A
28
Q

What is overloading?

A

when methods have same name but different parameters.