Exception Handling
Text Files
Binary Files
Java Swing
Random
100
If you think your code may throw an exception, you would put your code in one of these blocks
What is a try block
100
true or false: You can not view a text file with a text editor
What is FALSE
100
These are examples of binary files (name 2)
What is JPEG, GIF, MP3, AVI, PPT
100
This is what GUI stands for
What is Graphical User Interface
100
I tried to kill this object in class 2 weeks ago. It extends the class Bug
What is Mosquito
200
This is the block where you handle what happens if your code throws an Exception
What is the catch block
200
To create an input stream to a Text File, you create an instance of this class and pass in the file name
What is Scanner
200
true or false: When you create a Java Swing GUI, it is by default NOT visible
What is TRUE
200
This is the programming language used to create the Eclipse IDE
What is Java
300
This block is always executes whether or not an exception is thrown
What is finally block
300
To create an output stream in order to write to a text file, you create an instance of this class
What is PrintWriter
300
This method is used to read a String from a Binary File
What is readUTF()
300
What method do you call to get the content pane of the JFrame
What is getContentPane()
300
What was the question I asked for our last pop quiz?
What is the difference between Overriding and Overloading
400
true or false: If in your try block you encounter an excpetion, then the rest of the code in the try block will get ignored
What is TRUE
400
If you try to open a file, and Java cannot find it, it will throw this excpetion
What is FileNotFoundException
400
This class provides a way to represent file names in a general way. It can be used with both text files and binary files, and can represent either the complete path name, or the relative path name
What is File
400
What import statement do you need to use Java Swing
What is import javax.swing.*;
400
Name any 3 reserved keywords in Java.
What is any primitive data type, final, public, private, class, extends, implements, void, static, while, for, and more!
500
If your method divide( ) can possible throw a DividesByZero excpetion, then this is what you need to write at the end of your method signature
What is throws DivideByZeroExcpetion
500
If you are reading a text file, what method would your inputStream object call to see if the next line you are about to read exists?
What is inputStream.hasNextLine()
500
If you want to read and write Car objects to a file, what interface must your Car class implement?
What is implements Serializable
500
What are the 3 layout mangers of Java Swing
What are Border, Flow, Grid
500
Who is your favorite professor
Who is professor ?
M
e
n
u