CIS 123 Midterm

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/116

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

117 Terms

1
New cards

programming language, platform

What aspects does Java technology contain?

2
New cards

bytecode

What source files in Java are compiled to

3
New cards

Java Virtual Machine

Device Java uses in order to operate their code on multiple systems

4
New cards

API

A large collection of ready-made software components that provide many useful capabilities

5
New cards

package

Libraries of related classes and interfaces in which APIs are grouped

6
New cards

C++

The language in which Java is majorly derived from

7
New cards

platform independence

achieved by compiling the Java language code "halfway" to bytecode

8
New cards

automatic memory management model

the Garbage collection

9
New cards

references

what do candidate objects for the garbage collection lack

10
New cards

requirements, design, code, test

The waterfall development steps

11
New cards

inception, elaboration, construction, transition

The unified process steps

12
New cards

inception

unified phase in which the system is still being felt out to determine the scope of the system

13
New cards

elaboration

unified phase in which people are trying to mitigate the architectural risks of the system

14
New cards

construction

unified phase in which people are finishing all of the relevant use cases to make the system production ready/beta ready

15
New cards

transition

unified phase in which people move the system through its final release stages and beta releases, possibly including operations and maintenance

16
New cards

eXtreme Programming

Development methodology that focuses on the endless cycle of coding, creating, feedback, and remake

17
New cards

one

How many public classes can a file have?

18
New cards

public

What kind of file requires a name that matches the class name?

19
New cards

non-public, inner

What kind of classes can be in the same file?

20
New cards

built-in primitives

data that is stored directly in memory locations associated with the variable

21
New cards

boolean

primitive data type which stores true or false values

22
New cards

byte

primitive data type which holds integer in 8 bits

23
New cards

char

primitive data type which holds a single character

24
New cards

short, int, long

order of primitive data integer sizes from smallest to largest

25
New cards

float, double

primitive data type which holds real numbers

26
New cards

name, type location in memory, value

the four features of variables

27
New cards

implicit conversion

data type conversion from smaller type to larger

28
New cards

explicit conversion

data type conversion from larger to smaller

29
New cards

adapter

design pattern used to help an existing class conform to a new interface

30
New cards

adapter

design pattern which wraps the old class to work with the new interface

31
New cards

model-view-controller

design pattern which isolates display code from program flow and the business model

32
New cards

model-view-controller

design pattern which makes it possible for new views to be snapped on to existing logic

33
New cards

command

design pattern which allows a common front end to execute commands that it doesn't know ahead of time

34
New cards

command

design pattern which can add new orders even during runtime

35
New cards

strategy

design pattern which allows algorithms in for a particular task

36
New cards

strategy

design pattern which can represent different roles the object is taking or different environments

37
New cards

composite

design pattern which allows multiple objects of the same type ot be treated as one

38
New cards

composite

design pattern which is an example of using the inheritance loops

39
New cards

conditional statement

lets us choose which statement will be executed, give the power to make basic decisions

40
New cards

short-circuited operators

what type of operator is it if the left operand is sufficient to determine the result and the right operand is not evaluated

41
New cards

ternary

a conditional operator that requires three operands

42
New cards

Tolerance

What operating tactic should be used in comparing two floating point values

43
New cards

unicode

The character set in which Java character data is based on

44
New cards

iterator

an object that allows you to process a collection of items one at a time

45
New cards

hasNext, next

the two methods that every iterator object possesses

46
New cards

exception

a representation of an error condition or a situation that is not the expected result of a method, isolate the code that deals with the error condition from regular program logic

47
New cards

checked, unchecked

two categories of exceptions

48
New cards

checked

type of exceptions which are inherited from the core Java class Exception, represent non fatal to program executions

49
New cards

unchecked

type of exceptions which are considered fatal, will terminate the program with an appropriate error message

50
New cards

try-catch

the mechanism which is used to trigger an exception and handle the exception

51
New cards

finally

an optional block that when written, will always be executed, either after the "try" block code or after the "catch" block code

52
New cards

throws

a method declaration that says that the coder will be handling the exception himself

53
New cards

immutable

most important quality of the String class

54
New cards

length()

method that returns the number of characters contained in the string object

55
New cards

toString()

method that converts a non-string object to a String

56
New cards

printf()

method that is used to specify output formats

57
New cards

format specifiers

placeholders with format info

58
New cards

valueOf()

method that converts a string to an object of one of the primitive numeric types

59
New cards

charAt()

method used to get a certain character within a string

60
New cards

substring()

method that produces more than one consecutive character from a string

61
New cards

StringBuffer, StringBuilder

classes that allow character changes to Strings

62
New cards

String Tokenizer

Used to break a string into meaningful tokens

63
New cards

method library

contains useful static methods

64
New cards

create a program, create a method library, define new data

the uses for a class

65
New cards

instance data, instance method, class or methods

What is necessary for defining a new data type

66
New cards

constructors

What is the only aspect that classes do not inherit from parent classes

67
New cards

arguments

what does the system-supplied constructor not take

68
New cards

cannot be accessed

What happens to the system supplied constructor when it is overridden

69
New cards

super()

method used to access the parent constructor

70
New cards

this()

method used to access other defined constructors

71
New cards

instance

data-wise, variables that has variables that each individual class object will contain its own copy of and its own value for

72
New cards

instance

method-wise, called with a class object and may operate directly on instance data members

73
New cards

class members

An alternate way to say "static"

74
New cards

static

data-wise, variables that are shared by all objects in a class, only one ultimate copy exists

75
New cards

static

method-wise, stand-alone method that does not need any instance members to do its job

76
New cards

yes

yes

yes

yes

public

everywhere in program

in a subclass

in rest of package

in rest of class

77
New cards

no

yes

yes

yes

protected

everywhere in program

in a subclass

in rest of package

in rest of class

78
New cards

no

no

yes

yes

default case (no keyword)

everywhere in program

in a subclass

in rest of package

in rest of class

79
New cards

no

no

no

yes

private

everywhere in program

in a subclass

in rest of package

in rest of class

80
New cards

static

var: belongs to class

meth: class method

class: promotes to outer class

81
New cards

final

var: forever constant

meth: cannot be overriden

class: cannot be subclassed

82
New cards

void

meth: no return type

83
New cards

native

meth: implemented in non Java

class: contains a native method

84
New cards

abstract

class used to embody a design and partial code, cannot be instantiated

85
New cards

interface

contains no bodies or variables, can implement as desired

86
New cards

object

base of all other classes

87
New cards

toString(), equals(), clone()

the methods an object class always contains

88
New cards

classes

Java nouns are...

89
New cards

functions

Java verbs are...

90
New cards

public

how should member functions be declared

91
New cards

private

how should member data be declared

92
New cards

java file

used to declare a class

93
New cards

driver program

written to test the class as completely as possible

94
New cards

method

in charge of any changes to the object's state

95
New cards

self-governing

necessary trait for any object

96
New cards

encapsulation

hiding implementation details of an object from its clients

97
New cards

abstraction

separation of external view from internal view

98
New cards

public

an object's data should never be declared this

99
New cards

public visibility

used to declare methods that provide the object's services

100
New cards

service methods

alternate name for public methods