Java Concepts 3 - Implementing Classes Flashcards

(38 cards)

1
Q

abstraction

A

The process of finding the essential feature set for a building block of a program such as a class.

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

access specifier

A

A keyword that indicates the accessibility of a feature, such as private or public.

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

documentation comment

A

A comment in a source file that can be automatically extracted into the program documentation by a program such as javadoc.

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

encapsulation

A

The hiding of implementation details

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

garbage collection

A

Automatic reclamation of memory occupied by objects that are no longer referenced.

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

initialization

A

Setting a variable to a well-defined value when it is created.

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

instance field

A

A variable defined in a class for which every object of the class has its own value.

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

javadoc

A

The documentation generator in the Java SDK. It extracts documentation comments from Java source files and produces a set of linked HTML files.

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

JDK

A

The Java software development kit that contains the Java compiler and related development tools.

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

local variable

A

A variable whose scope is a block

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

constructor

A

A special block of statements called when an object is created

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

test class

A

a second class, with a main method, to execute test instructions.

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

public interface

A

The features (methods, fields) of a class that are accessible to all users

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

return type

A

The type of the primitive or object that will be returned at the completion of a method

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

//

A

single line comment, comments out the rest of the line to the right of the //

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

In standard Java documentation, what needs to be commented?

A

every class, every method, every parameter, every return value

17
Q

lifetime

A

how long a variable lives and is accessible

18
Q

/* */

A

multi-line comment, comments out everything between the /* (starting) and the */ (ending)

19
Q

black box

20
Q

explicit parameter

21
Q

implement

22
Q

implicit parameter

A

the object on which a method is invoked

23
Q

method

A

a sequence of statements that has a name, may have formal parameters, and may return a value

24
Q

method body

A

the part of the method that contains the declarations of local variables and the statements.

25
method definition
consists of an access specifier, the return type, the name of the method, a list of the parameters (if any), and the body of the method
26
method signature
the name of a method and the types of its parameters
27
method header
the return type and the method signature
28
object-oriented
a paradigm that uses objects to design applications and computer programs
29
parameter variable
a variable of a method that is initialized with a parameter value when the method is called
30
private
a feature that is accessible only by methods of the same class or an inner class
31
public
a feature that is accessible by all classes
32
protected
a feature that is accissible by a class, its inner classes, its subclasses, and other classes in the same package
33
return
a keyword that passes a value or object back to the calling method
34
this
a keyword that is used like a pronoun to access the current object, usually the object on which the initial method was called
35
type
a named set of values and the operations that can be carried out with them
36
37
/\*\* \*/
Javadoc comment, information inbetween these symbols can be automatically pulled out of the .java file to create the public interface. Ignored during compiling
38
scope
the part of a program in which a variable is defined and accessible