Trouble Flashcards
ArithmeticException
Runtime or Checked Exception?
Runtime Exception
ArrayIndexOutOfBoundsException
Runtime or Checked Exception?
Runtime Exception
ClassCastException
Runtime or Checked Exception?
Runtime Exception
IllegalArgumentException
Runtime or Checked Exception?
Runtime Exception
NullPointerException
Runtime or Checked Exception?
RuntimeException
NumberFormatException
Runtime or Checked Exception?
Runtime Exception
FileNotFoundException
Runtime or Checked Exception?
Checked Exception
IOException
Runtime or Checked Exception?
Checked Exception
Does StringBuilder test for object equality or same letters with the .equals() method?
Object Equality
The type of the object determines…
which properties exist within the object in memory
The type of the reference to the object determines…
which methods and variables are accessible to the java program
What can you not do with the Period class?
Chain methods!
How to define an ArrayList that can have different types in it
ArrayList differentTypes = new ArrayList()
I guess just don’t specify type
Can you override the finalize() method?
Yes
Cab you pass null to varargs?
yes, but trying to access an index will result in NullPointerException