CC3 MIDTERMS Flashcards

1
Q

-Mechanism that enables one class to inherit behavior and attributes of another class

-Apply knowledge of general category to move specific objects

A

Inheritance

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

Consists of many types of diagrams

A

Unified Modeling Language (UML)

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

overview of a class

A

Class diagram

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

Used as a basis for inheritance

A

Base class also called Super class and Parent class

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

Inherits from base class and Always “is a” case or example of more general base class

A

Derived class

Also called:

Subclass
Child class

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

Achieve inheritance in Java

A

Keyword extends

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

Always refers to superclass

A

Keyword super

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

Concept of keeping data private

Says can be altered only by methods you choose and only in ways that you can control

A

Information hiding

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

Instances hold single character value

Defines methods that can manipulate or inspect single character data

A

Character

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

Class for working with fixed string data

Unchanging data composed of multiple characters

A

String

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

Class for storing and manipulating channels says composed of multiple characters

A

String builder and String buffer

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

Sequence of characters enclosed within double quotation marks

Unnamed object, or anonymous object of string class

A

Literal string

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

Named object of string class

A

String variable

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

Defined in Java. Lang. String

Automatically imported into every program

A

Class string

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

Objects that cannot be changed

A

Immutable

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

Evaluates contents of two string objects to determine if they are equivalent

A

Equals()

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

Ignores case when determining if two strings equivalent

A

EqualsIgnoreCase

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

Compares two strings and returns

A

CompareTo()

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

Only if two strings refer to same value

A

Zero

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

If calling object “less than” argument

A

Negative number

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

If calling object “more than” argument

A

Positive number

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

Convert any string to uppercase or lowercase equivalent

A

toUppercase and to toLowercase

23
Q

Returns length of string

24
Q

Determines whether specific characters occurs within string

25
Requires integer argument Indicates position of character that method returns
charAt
26
Return true or false if string objects does or does not end to start with specified argument Takes string into argument
endsWith() method and starts with()
27
Replace all occurrences of some character within string
Replace()
28
Join simple variable to string
Concatenation
29
Part of Java. Lang Automatically imported into programs Convert string into integer
Integer class
30
Takes string argument Returns it's integer value
parseInt
31
Class or object "wrapped around" simpler element
Wrapper
32
More efficient
String builder
33
Thread safe Use in multi threaded programs
String buffer
34
Memory block
Buffer
35
Actual length of buffer
Capacity
36
Change length of string in string builder object
setLength
37
Adds characters to end of String builder object
Append()
38
Takes string argument Returns double value
Double. ParseDouble
39
Named list of data items
Array
40
Integer contained within square brackets Indicates one of arrays variables or elements
Subscript
41
Primitive variable
Scalar
42
Instance variable Automatically assigned value for every array created
Field
43
Compare value to endpoints of numerical ranges Find category in which value belongs
Range match
44
Objects holds memory address where values stored
Reference types
45
Process of arranging series of objects in some logical order
Sorting
46
Begin with object that has lowest value
Ascending order
47
Start with object that has largest value
Descending order
48
Smallest items "bubble" to top of list Eventually creating sorted list
Bubble sort
49
Elements accessed using single subscript Picture as column of values
One dimensional or single dimensional array
50
Contains many useful methods for manipulating arrays
Arrays class
51
Arrays have a fixed size that is sweet when they are created, while arraylists can grow our shrink dynamically
Size
52
Arrays can only store of the same type, while ArrayLists can store elements of any type
Type
53
Arraylists provide many useful methods for manipulating the lists, while arrays have limited methods available for manipulating the elements
Methods