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

A

Length()

24
Q

Determines whether specific characters occurs within string

A

indexOf

25
Q

Requires integer argument

Indicates position of character that method returns

A

charAt

26
Q

Return true or false if string objects does or does not end to start with specified argument

Takes string into argument

A

endsWith() method and starts with()

27
Q

Replace all occurrences of some character within string

A

Replace()

28
Q

Join simple variable to string

A

Concatenation

29
Q

Part of Java. Lang
Automatically imported into programs
Convert string into integer

A

Integer class

30
Q

Takes string argument
Returns it’s integer value

A

parseInt

31
Q

Class or object “wrapped around” simpler element

A

Wrapper

32
Q

More efficient

A

String builder

33
Q

Thread safe
Use in multi threaded programs

A

String buffer

34
Q

Memory block

A

Buffer

35
Q

Actual length of buffer

A

Capacity

36
Q

Change length of string in string builder object

A

setLength

37
Q

Adds characters to end of String builder object

A

Append()

38
Q

Takes string argument
Returns double value

A

Double. ParseDouble

39
Q

Named list of data items

A

Array

40
Q

Integer contained within square brackets

Indicates one of arrays variables or elements

A

Subscript

41
Q

Primitive variable

A

Scalar

42
Q

Instance variable
Automatically assigned value for every array created

A

Field

43
Q

Compare value to endpoints of numerical ranges

Find category in which value belongs

A

Range match

44
Q

Objects holds memory address where values stored

A

Reference types

45
Q

Process of arranging series of objects in some logical order

A

Sorting

46
Q

Begin with object that has lowest value

A

Ascending order

47
Q

Start with object that has largest value

A

Descending order

48
Q

Smallest items “bubble” to top of list
Eventually creating sorted list

A

Bubble sort

49
Q

Elements accessed using single subscript

Picture as column of values

A

One dimensional or single dimensional array

50
Q

Contains many useful methods for manipulating arrays

A

Arrays class

51
Q

Arrays have a fixed size that is sweet when they are created, while arraylists can grow our shrink dynamically

A

Size

52
Q

Arrays can only store of the same type, while ArrayLists can store elements of any type

A

Type

53
Q

Arraylists provide many useful methods for manipulating the lists, while arrays have limited methods available for manipulating the elements

A

Methods