CS2 Final Vocabulary
Terms in this set (61)
Primitive or reference type : int
Primitive or reference type : String
Primitive or reference type : byte
Primitive or reference type : short
Primitive or reference type : Object
Primitive or reference type : long[ ]
Primitive or reference type : Integer
Primitive or reference type : char
Primitive or reference type : boolean
Primitive or reference type : Thread
Term used to describe behavior that is defined but not implemented
an object oriented feature that allows two classes to establish a parent/child relationship
the keyword used to establish a parent/child relationship between two classes
refers to replacing a method that is implemented in the parent class
refers to two methods with the same name but different parameters
an object oriented type that defines behavior but does not provide an implementation
an object oriented type that may define behavior without implementing it and implement behavior as well
Refers to the fact that a child may be used in place of its parent and that what appears to be a method on one class at compile time may be a different implementation at runtime
refers to the use of access modifiers to protect access to fields and methods in a class. Also refers to the fact that an object holds it related state and behavior together in one place.
Which interface must be implemented in order to define the natural ordering of the instances of a class?
Let A and B be two instances of a class that implements comparable. Write the method call used to make a comparison between A and B.
What value is returned by A.compareTo(B) and A comes before B in the natural order?
less than 0/negative
What value is returned by A.compareTo(B) and A comes after B in the natural order?
greater than 0/positive
Which interface must be implemented to define an alternate ordering for some class (there is no natural order or the natural order does not work)
Let C be an instance of a class that implements comparator. Write the method call used to make a comparison between A and B.
Hash Set (sorted or unique elements?)
Tree Set (sorted or unique elements?)
Hash Map (sorted or unique elements?)
no, unique keys.
Tree Map (sorted or unique elements?)
yes, unique keys.
ArrayList (sorted or unique elements?)
LinkedList (sorted or unique elements?)
A sequence of data; may be binary data (bytes) or character data
Used to read a sequence of binary data.
Used to write a sequence of binary data.
Used to read a sequence of character data.
Used to write a sequence of character data.
Reading from or writing to a physical media is slow. This technique is used to improve performance.
Used to send any data temporarily stored in memory out to the destination
used to clean up a resource once reading from and/or writing to is complete to ensure that other process can use the resource.
A human readable identifier for a computer
a numeric identifier for a computer, usually expressed as a dotted quad
a computer that can translate a human readable identifier into a numeric identifier
Domain Name Server (DNS)
a unique identifier for some resource on the web
Uniform resource locator (URL)
a connection oriented protocol that ensures that packets of information are transmitted reliably, in order, and without corruption
a protocol that is responsible for relaying and routing packets of information
Internet Protocol (IP)
a connectionless protocol that is a packet delivery system. Packets may be delivered multiple times, out of order, or not at all.
represents a connection between a client and a server. Can be used to communicate from either end of the connection
A design pattern that allows one object to register with another object to be notified when some important event occurs
Represents a window in a JavaFX application. An instance of this class is provided to the start() method.
The method of a JavaFX application that is called before start() and is used to perform important setup.
The architectural pattern that divides classes into categories so that what the user sees and interacts with is separated from the core application logic.
A container into which other GUI components may be added. Determines the size and position on the screen for the components inside it.
The specific type of event that is created when the user clicks on a button n a JavaFX GUI.
The main container for a JavaFX GUI. Holds the top-level control for the entire user interface. Added to the window before displaying it.
The method of a JavaFX application that is called when the window is closed. Is used to perform important cleanup.
Construct a server listens for incoming connections on 33075
SeverSocket server = new Socket(33075);
A client opens a connection to buttercup.rit.edu:7611
Socket connect = new Socket("buttercup.rit.edu", 7611);
The server receives and creates connection
Socket client = server.accept();
Get the resource used to write bytes to data to the other end of the connection
Get the resource used to read bytes of data from the other end of the connection
close the connection