CC2 FINAL TERM REVIEWER

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 43

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

44 Terms

1

Character class

Contains standard methods for testing values of characters

New cards
2

Literal string

Sequence of characters enclosed within double quotation marks

New cards
3

class

String is a ______

New cards
4

charAt() method

Indicates position of character that method returns

New cards
5

indexOf() method

Determines whether specific character occurs within String, Returns position of character

New cards
6

setLength() method

Change length of String in StringBuilder object

New cards
7

append() method

Adds characters to end of StringBuilder object

New cards
8

insert() method

Adds characters at specific location within StringBuilder object

New cards
9

setCharAt() method

Changes character at specified position within StringBuilder object

New cards
10

charAt() method

Accepts argument that is offset of character position from beginning of String

New cards
11

Loop

Structure that allows repeated execution of a block of statements

New cards
12

Loop Body

Block of statements, Executed repeatedly

New cards
13

while loop

Executes body of statements continually, As long as Boolean expression that controls entry into loop continues to be true

New cards
14

Definite loop

Performs task a predetermined number of times, Also called a counted loop

New cards
15

Suspect infinite loop

Same output displayed repeatedly, Screen remains idle for extended period of time

New cards
16

Loop control variable

Variable altered and stored with new value

New cards
17

Empty body

Body with no statements, Caused by misplaced semicolons

New cards
18

for Loop

Used when definite number of loop iterations is required

New cards
19

do.. while Loop

a posttest loop, The loop body executes before the loop-controlling questions is asked even one-time.

New cards
20

inner loop

must be entirely contained within the outer loop; loops can never overlap.

New cards
21

WHILE LOOP

CONTROLLING BOOLEAN EXPRESSION IS THE FIRST STATEMENT

New cards
22

FOR

A CONCISE FORMAT IN WHICH TO EXECUTE LOOPS

New cards
23

DO...WHILE LOOP

CONTROLLING BOOLEAN EXPRESSION IS THE LAST STATEMENT

New cards
24

Array

is a collection of Homogenous, Ordered and Finite set of elements

New cards
25

Homogenous

implies all elements must be of the same type and have the same structure.

New cards
26

Adding

inserts new element in a position specified by the index, also sometimes referred to as Assigning.

New cards
27

Retrieving

It is also called Accessing, To retrieve an element we must know the Index value

New cards
28

Deleting

In this way the element to be deleted is overwritten by the element to its right.

New cards
29

Inserting

It adds new element in a specified position, without replacing any existing element

New cards
30

Array Traversing

Traversing involves accessing and processing an array element exactly once, also called Visiting.

New cards
31

ragged array

Each row in a two-dimensional array is itself an array. So, the rows can have different lengths. Such an array is known

New cards
32

class

is a blueprint or template used to create objects. It represents the properties (attributes/fields) and behaviors (methods) that objects of that class will have.

New cards
33

Class header

Optional access modifier, Any legal identifier for the name of class

New cards
34

public class

Accessible by all objects

New cards
35

static class variables

Are not instance variables

New cards
36

attributes

are also known as fields or member variables within a class. They represent the data or state associated with objects created from that class.

New cards
37

Access modifiers

Place entire method within class that will use it

New cards
38

static variable

also known as a class variable, is a variable that belongs to the class itself rather than to any instance (object) of the class.

New cards
39

Local variable

Known only within boundaries of method, Each time method execute

New cards
40

Methods

are functions that are defined inside a class that describe the behaviors of an object.

New cards
41

constructor method

is a special type of method used to initialize objects. It is called when an object of a class is created using the new keyword.

New cards
42

default constructor

A constructor with no parameters

New cards
43

void method

A method without a return value in Java, perform a task or an action but do not return any value upon completion.

New cards
44

object

is a fundamental building block of a class.

New cards

Explore top notes

note Note
studied byStudied by 11 people
852 days ago
5.0(1)
note Note
studied byStudied by 15 people
878 days ago
4.0(1)
note Note
studied byStudied by 95 people
903 days ago
4.8(5)
note Note
studied byStudied by 10 people
654 days ago
5.0(2)
note Note
studied byStudied by 4 people
654 days ago
5.0(1)
note Note
studied byStudied by 96 people
866 days ago
5.0(1)
note Note
studied byStudied by 63 people
847 days ago
5.0(1)
note Note
studied byStudied by 1035 people
457 days ago
5.0(7)

Explore top flashcards

flashcards Flashcard (91)
studied byStudied by 135 people
272 days ago
5.0(3)
flashcards Flashcard (156)
studied byStudied by 3 people
685 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 9 people
670 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 7 people
653 days ago
5.0(1)
flashcards Flashcard (69)
studied byStudied by 8 people
29 days ago
5.0(1)
flashcards Flashcard (143)
studied byStudied by 22 people
631 days ago
4.3(3)
flashcards Flashcard (41)
studied byStudied by 11 people
819 days ago
5.0(1)
flashcards Flashcard (131)
studied byStudied by 15 people
10 minutes ago
5.0(1)
robot