Use this method for writing decimal numbers to a binary file
What is writeDouble (double x )
100
This is an example of a predefined exception class
What is BadStringOperationException, ClassNotFoundException, IOException, NoSuchMethodException, etc..
100
Possible to specify that a method cannot be overridden in subclass by adding this keyword to the heading
What is final
100
You and your friend both got an array of Christmas Presents from Santa. You would do this to see if you both got the exact same presents.
What is check if presents.length is equal in both arrays, then check if each element at each index is equal in both arrays.
100
You came up with a list of new years resolutions and want to write them to a file. However, it's embarrassing and you don't want people to open it in any text editor and read it. You can make your file this type of file instead!
What is a binary file
200
Use this method for writing a String to a binary file
What is writeUTC (String x)
200
This method is defined in an Exception class display get your exception message
What is getMessage
200
You can delcare an entire class with this keyword so that it cannot be used as a base class to derive any other class
What is final
200
Santa Claus was checking his list, and checking it twice. His list is a text file, so he used this class to create the Java input stream in order to read it.
What is Scanner
200
Everybody is counting down from 10 to 1 on New Years Eve. You decided to create a method that anybody can call to do that for them. They don't need to create an object of your class to call this type of method.
What is static method.
300
This type of file is human readable and can be viewed with a text editor
What is a Text file
300
This keyword is used to throw an exception
What is throw
300
You decided to bake some cookies for Santa. You decided to borrow your mom's recipe for making delicious cookies. So now you have methods for getIngredients() and mix() and bake(). This is called what in Java
What is Inheritance
300
You are going to a HUGE new years eve party. But instead of people, you have a bunch of farm animals there. You tell the pigs, horses, donkeys, chickens and monkeys to execute the eat() method. but they all eat something different. This demonstrates what in Java
What is Polymorphism
400
If you try to open a file that doesn't exist, you get this type of Exception
What is FileNotFoundException
400
This type of exception in Java, you do not need to account for
What is unchecked exception
400
Is it possible to define a new interface which builds on an existing interface
(true or false)
What is true (it is called extending an interface)
400
You inherited your mom's Recipe class for making Christmas brownies. However, you wanted to add a secret ingredient, so your getIngredients() method will be slightly different. Also, you want to bake the brownies at 420 degrees, so that method will be different too. This is called what in Java
What is over-riding
400
I'm in Detroit at a New Year's Eve party, and we are blasting the new Eminem album really loud and the neighbors started to complain. I handled this situation by using Exception Handling. if the neighbors call the cops, I threw my exception. The executed code burns the neighbors house down. The code is located in this block.
What is catch block
500
When you try to read past the last line of a file, you get this type of exception
What is EOFException (End of File Exception)
500
This type of exception must be caught in a catch block, or declared in a throws clause
What is checked exception
500
This class in java Java is the ultimate ancestor of every class
What is Object
500
Santa created a whole bunch of Elf objects to help him make his toys faster. He handed them a list of requirements or methods that each toy must have. Such as giftWrap() and writeKidsNameOnIt(). Every toy must implement these methods. This list of method requirements is called what in Java
What is Interface
500
You are at a New Years party mixing drinks. You have a bunch of Vodka objects, but somebody asked you to create a VodkaRedBull object. What can you do so that VodkaRedBull object inherits the Vodka object, and adds some red bull
What is VodkaRedBull extends Vodka. Then create a RedBull class variable that belongs to VodkaRedBull