CSE 2221 Final Exam EXAM ELABORATIONS
QUESTIONS AND VERIFIED ANSWERS 2025 UPDATE |
100% SOLVED!!
FIFO - (ANSWER)First in First out
Formal Type Parameter ("T") - (ANSWER)Takes the place of an actual argument
type such as <Integer> or <String> in instance method
Diamond Operator - (ANSWER)<>
Generic/Parameterized Type - (ANSWER)Anything that can use <T>, and can be
virtually any type; Queue, Stack, Set, etc...
Actual/Argument Type - (ANSWER)The actual argument type is <Integer> rather
than <T>
Wrapper Type - (ANSWER)Immutable, it basically automatically translates int
from Integer in things such as Queues, Stacks, etc...
Auto-boxing/unboxing - (ANSWER)Allows wrapper types to be used with
primitive-type syntax almost as if they were primitive types
Total Preorder - (ANSWER)Any two values of type T are comparable, and that
theere are no cycles (e.g. nothing like a < b < c < d)
, Nested class (private static class) - (ANSWER)A class that implements Comparator
(declared for local use inside another class), and should be declared as private
static
Set (math) - (ANSWER)No duplicates, no order among elements. Can be any
element of type T
Union - (ANSWER)Combines two sets but removes all duplicates
Intersection - (ANSWER)Sorts through both sets and keeps common elements
from both sets
Difference - (ANSWER)(X\Y) - removes all elements from X that are contained in Y
Subset - (ANSWER)S is a subset of T if and only if every element of S is also in T
Proper Subset - (ANSWER)S is proper subset of T does not allow S = T (if A =
{1,3,5} and B = {1,5} then B is a proper subset of A)
Cardinality - (ANSWER)Size of the set
QUESTIONS AND VERIFIED ANSWERS 2025 UPDATE |
100% SOLVED!!
FIFO - (ANSWER)First in First out
Formal Type Parameter ("T") - (ANSWER)Takes the place of an actual argument
type such as <Integer> or <String> in instance method
Diamond Operator - (ANSWER)<>
Generic/Parameterized Type - (ANSWER)Anything that can use <T>, and can be
virtually any type; Queue, Stack, Set, etc...
Actual/Argument Type - (ANSWER)The actual argument type is <Integer> rather
than <T>
Wrapper Type - (ANSWER)Immutable, it basically automatically translates int
from Integer in things such as Queues, Stacks, etc...
Auto-boxing/unboxing - (ANSWER)Allows wrapper types to be used with
primitive-type syntax almost as if they were primitive types
Total Preorder - (ANSWER)Any two values of type T are comparable, and that
theere are no cycles (e.g. nothing like a < b < c < d)
, Nested class (private static class) - (ANSWER)A class that implements Comparator
(declared for local use inside another class), and should be declared as private
static
Set (math) - (ANSWER)No duplicates, no order among elements. Can be any
element of type T
Union - (ANSWER)Combines two sets but removes all duplicates
Intersection - (ANSWER)Sorts through both sets and keeps common elements
from both sets
Difference - (ANSWER)(X\Y) - removes all elements from X that are contained in Y
Subset - (ANSWER)S is a subset of T if and only if every element of S is also in T
Proper Subset - (ANSWER)S is proper subset of T does not allow S = T (if A =
{1,3,5} and B = {1,5} then B is a proper subset of A)
Cardinality - (ANSWER)Size of the set