Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

answer the following: True or false 1)Private methods are not inherited. 2) If a

ID: 3570511 • Letter: A

Question

answer the following: True or false

1)Private methods are not inherited.

2) If a constructor includes a call to the constructor of the base class, then the call must be the first action in the constructor.

3)The expression s.charAt(0) will generate an exception if the string is the empty string.

4)A throw statement is only allowed inside a catch-block.

5)It takes longer to handle an exception for an index out of bounds in an array than using an ArrayList that can grow in size as needed.

6)A program is not allowed to have more throw statements than catch-blocks.

7)Each area of BorderLayout (ie. NORTH, SOUTH, etc) may contain only one component.

8)Any primitive data type may be used as a subscript to an array.

9)The Java compiler will generate an error if a subscript has a value that is greater than the number of elements in the array.

10)A class may only implement one interface.

11.) The square bracket notation used with arrays can also be used with ArrayLists.

12) Constructors are inherited.

13)A superclass reference variable can reference an object of its subclass.

14)An Abstract class cannot be instantiated.

15)Any method that includes a throw statement must also include a catch-block.

Explanation / Answer

1) True
2) True
3) True
4) False
5) True
6) False
7) True
8) False
9) False
10) False
11) False
12) False
13) True
14) True
15) False