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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started