Question
a.
Array()
b.
covertArray()
c.
toArray()
d.
covertoArray()
Posted under Java Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of these methods can be used to obtain a static array from an ArrayList object?
Similar Questions
Discover Related MCQs
Q. Which of these method is used to reduce the capacity of an ArrayList object?
View solution
Q. Map implements collection interface?
View solution
Q. Which of the below does not implement Map interface?
View solution
Q. What is the premise of equality for IdentityHashMap?
View solution
Q. What happens if we put a key object in a HashMap which exists?
View solution
Q. While finding the correct location for saving key value pair, how many times the key is hashed?
View solution
Q. Is hashmap an ordered collection.
View solution
Q. If two threads access the same hashmap at the same time, what would happen?
View solution
Q. How to externally synchronize hashmap?
View solution
Q. If large number of items are stored in hash bucket, what happens to the internal structure?
View solution
Q. How can we remove an object from ArrayList?
View solution
Q. How to remove duplicates from List?
View solution
Q. How to sort elements of ArrayList?
View solution
Q. When two threads access the same ArrayList object what is the outcome of the program?
View solution
Q. How is Arrays.asList() different than the standard way of initialising List?
View solution
Q. What is the difference between length() and size() of ArrayList?
View solution
Q. Which class provides thread safe implementation of List?
View solution
Q. Which of the below is not an implementation of List interface?
View solution
Q. What is the worst case complexity of accessing an element in ArrayList?
View solution
Q. When an array is passed to a method, will the content of the array undergo changes with the actions carried within the function?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Java Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!