This fundamental of OOP deals with hiding implementations.
Abstraction
Though outdated, In Java, most GUI components come from the _____ framework.
Swing
A _____ Chart is also known as a structured chart. Visually demonstrating structured priorities.
Hierarchy
____ Are the building blocks of most (but not all) Data Structures in programming.
Arrays
For handling exceptions and "Risky" validations we use a ______
try-catch
What is the purpose of Encapsulation in regards to OOP?
Deals with data security. Turning fields private/protected and only keeping specific methods public.
To get a JFrame to appear on screen, good practices demand these 3 items be a requirement.
Dimensions (width, height)
Set Visibility to True
Set Default Close Operation
Often identified from the 'new' keyword. _____ Are bundles of data stemming from classes.
objects
____ and ____ are the two most common types of algorithms used with Data Structures.
Sorting and Searching
This block, often following a try-catch, is meant to clean up any messes left over.
finally
List<String> myList = new ArrayList<String>();
Demonstrates what fundamental of OOP?
Polymorphism
Name 5 different GUI components found in Java's Swing Framework.
JButton, JLabel, JPanel, JFrame, JTextField, JRadioButton, JCheckBox, JTree, JWindow
(and many many more)
These diagrams are often used to explain class definitions and relationships
Unified Modeling Language (UML) diagram
This sorting algorithm, often considered the most basic, works by comparing and swapping all adjacent elements in a data structure.
Bubble Sort
When using a try-catch to connect to the internet, or a database, or read a file. It's important to make sure you ____ the connection or file once you are done with it.
Close!!
In Java, when inheriting a parent class, the subclass has a crucial limitation within its constructor. What is this limitation?
Only allowed to Inherit 1 superclass
To give a clicked button some sort of function, we implement the interface know as what?
ActionListener
When compiled, Java source code is broken down into _____
Bytecode
This sorting algorithm works by finding the smallest element in a data structure then comparing and swapping it with the first unsorted element.
Selection Sort.
When unable to locate a file, Java throws this Exception that needs to be caught.
FileNotFoundException
In Java, an Interface is often considered the purest form of this OOP fundamental.
Abstraction
Event: An object's state was changed. Triggered by something such as a button was clicked, or a textbox is being typed in currently.
Action: A process that occurs after/before/during an event. e.g. Created a new window when a button was clicked. Or, change text color when we hover over the text.
Explain the difference between the JVM, the JDK, and the JRE.
JRE: The environment that contains the JVM, and necessary libraries to run java applications.
JVM: Core engine for java compilation and interpretation. The environment required surrounding all Java Programs.
JDK: The development kit required to code java applications
These two methods are used in an ArrayList to assist with comparisons and assist with swapping.
.get()
.set()
This common exception method is used to output a detailed trace of where the exception occurred.
printStackTrace()