Question: #4 if two methods in the same class have the same name, which is true? A) they must have a different number of parameters B)

#4 if two methods in the same class have the same name, which is true?

A) they must have a different number of parameters B) they must have different return types C) they must have different parameter type lists D) the compiler must generate an error message

#5 which of the following is false about type ArrayList?

A) the add operation always increase size by 1 B) only objects can be stored in an ArrayList C) the capacity of an ArrayList can be changed using the set method/ D) none of the above is false

#6 which of the following are true about arrays?

A) arrays are reference types B) array indexing is bounds-checked C)arrays sometimes can be created without using new D) the entire contents of an array can be copied via =.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!