• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

image

PLAY BUTTON

image

PLAY BUTTON

image

Progress

1/25

Click to flip

25 Cards in this Set

  • Front
  • Back
Polling
actively sampling the status of an external device by a client program as a synchronous activity.
Interrupts
asynchronous signal indicating the need for attention or a synchronous event in software indicating the need for a change in execution.
Polymorphism
Subtype polymorphism, almost universally called just polymorphism in the context of object-oriented programming, is the ability to create a variable, a function, or an object that has more than one form.
3 types of sorting algorithms?
Bubble sort, insertion sort, merge sort
Slowest sorting algorithm?
Bubble sort
How many times does bubble sort run through data array?
n-1 times
Which is the middle-fastest sorting algorithm?
insertion sort
How many times does insertion sort run through the array?
Once
How does merge sort work?
Breaks the array into smaller parts, recurses through, sorts, and merges the final result
Which sorting algorithm is the fastest?
Merge sort
What is big O notation?
It describes the limiting behavior of the function when the argument tends towards a particular value or infinity
Java code to print a line
Systm.out.println();
How do you make a variable or method unchangeable?
prefix it with "final"
Instantiate an array of Dog objects called myDogs with 3 elements.
Dog[] myDogs = new Dog[3]
Why doesn't this work: while(1)?
1 is an integer, not a boolean.
How do you keep a class from being instantiated?
With the "abstract" keyword
How do you implement an interface?
Dog implements Pet. Your class can implement multiple interfaces.
To invoke the superclass version of a method:
use the super keyword. E.g.: super.runReport();
How do you make a window in Java?
JFrame frame = new JFrame();
How do you add stuff to a JFrame?
frame.getContentPane().add(button);
How do you make a frame visible?
frame.setVisible(true);
How do you set the size of a frame?
frame.setSize(300,300);
How to get the BufferedReader to read a single character?
BufferedReader.read();
How to get the BufferedReader to read a line?
BufferedReader.readLine();
How does insertion sort work?
Works by moving an element to anywhere in the array it should be. Moves through the array once.