What are ragged arrays -Correct Answer ✔ ✔ arrays with different
columns in each row
T/F: It is not possible for a superclass to call a subclass method -
Correct Answer ✔ ✔ True
T/F: All methods in an abstract class must also be declared abstract -
Correct Answer ✔ ✔ False
T/F: Every class has a toString method and an equal's method
inherited from Object class -Correct Answer ✔ ✔ True
Which access specifier give access of members to any subclass and
classes in the same package only -Correct Answer ✔ ✔ Protected
Any object that can be thrown as an Exception must inherit from this
class -Correct Answer ✔ ✔ Throwable
, T/F: A class may implement at most one interface -Correct Answer ✔
✔ False
T/F: A class may extend at most one superclass -Correct Answer ✔
✔ True
A checked Exception is checked by -Correct Answer ✔ ✔ the Java
compiler
T/F: A programmer can code only one thrown exception in a try block
-Correct Answer ✔ ✔ False
What line of code creates a Scanner object to read data from a file -
Correct Answer ✔ ✔ Scanner input = new Scanner(new
File("c:\\file.txt"));
What line of code opens a file for output -Correct Answer ✔ ✔
PrintWriter outputFile = new PrintWriter("c:\\file.txt"));