Question: The Collections class provides static methods that work with Lists. Which of the following is not functionality provided by the static methods of the Collections

The Collections class provides static methods that work with Lists.
Which of the following is not functionality provided by the static methods of the Collections
class?
sort
find the maximum
none of these is correct-Collections provides methods for all of these
find the minimum
find the total
shuffle
Which of the following is true?
List String> wordList = new ArrayList String >();
wordList.add("hello");
wordList.add(4);
the code has a syntax (compiler) error
there is no error
the code will have a runtime error
Which of the following is true?
List String> wordList = new ArrayList String>();
wordList.add("hello");
string word = wordList.get (0);
there is no error
the code has a syntax (compiler) error
the code will have a runtime error
 The Collections class provides static methods that work with Lists. Which

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!