Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
What is the difference between ArrayList and Vector?
Home
Technology
What is the difference between ArrayList and...
asked
May 26, 2021
in
Technology
by
JackTerrance
What is the difference between ArrayList and Vector?
interview-question-answer
technology-questions-answers
1
Answer
0
votes
answered
May 26, 2021
by
JackTerrance
No.
ArrayList
Vector
1)
ArrayList is not synchronized.
Vector is synchronized.
2)
ArrayList is not a legacy class.
Vector is a legacy class.
3)
ArrayList increases its size by 50% of the array size.
Vector increases its size by doubling the array size.
4)
ArrayList is not ?thread-safe? as it is not synchronized.
Vector list is ?thread-safe? as it?s every method is synchronized.
Related questions
0
votes
Q: What is the difference between the length of an Array and size of ArrayList in Java?
What is the difference between the length of an Array and size of ArrayList in Java?...
asked
May 27, 2021
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the difference between ArrayList and LinkedList?
What is the difference between ArrayList and LinkedList?...
asked
May 26, 2021
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: Explain What is the difference between length() and size() of ArrayList?
What is the difference between length() and size() of ArrayList? (a) length() and size() return the ... Collections Framework of Java Select the correct answer from above options...
asked
Mar 1, 2022
in
Education
by
JackTerrance
java
util
0
votes
Q: What is the difference between length() and size() of ArrayList?
What is the difference between length() and size() of ArrayList? (a) length() and size() return ... programming questions and answers pdf, java interview questions for beginners...
asked
Oct 25, 2021
in
Education
by
JackTerrance
essential-java-interview-questions
java-interview-questions-answers
java-multiple-choice-questions
java-mcq-with-answers
core-java-mcq
core-java-questions
0
votes
Q: What is the difference between Array and ArrayList in JAVA?
What is the difference between Array and ArrayList in JAVA?...
asked
May 27, 2021
by
JackTerrance
java-interview-questions
0
votes
Q: How to convert ArrayList to Array and Array to ArrayList in JAVA?
How to convert ArrayList to Array and Array to ArrayList in JAVA?...
asked
May 27, 2021
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: The relation between vector potential and field strength is given by
The relation between vector potential and field strength is given by (a) Gradient (b) Divergence ... by,electromagnetic theory engineering physics,electromagnetic theory nptel...
asked
Nov 11, 2021
in
Education
by
JackTerrance
electromagnetic-theory-interview-questions
electromagnetic-theory-interview-questions-answers
electromagnetic-theory-multiple-choice-questions
electromagnetic-theory-mcq-with-answers
electromagnetic-theory-mcq
electromagnetic-theory-questions
0
votes
Q: What is the simplest way to create a new text file with values from an ArrayList?
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Apr 26, 2022
in
Education
by
JackTerrance
javaarraylist
0
votes
Q: I have a User class that has aprivate field a ArrayList<object>, I wish to display all ArrayList<object> in a recycler view
I wish to retrieve my the elements inside Users that as a field of ArrayList and display each schedule ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Apr 16, 2022
in
Education
by
JackTerrance
javaandroidfirebase
0
votes
Q: How to split ArrayList by object attribute in java?
I am writing a program to optimize a transportation system. I have an ArrayList "passengers" of 65,000 ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Apr 12, 2022
in
Education
by
JackTerrance
javasorting
0
votes
Q: How to split ArrayList by object attribute in java?
I am writing a program to optimize a transportation system. I have an ArrayList "passengers" of 65,000 ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Apr 10, 2022
in
Education
by
JackTerrance
javasorting
0
votes
Q: Explain When two threads access the same ArrayList object what is the outcome of the program?
When two threads access the same ArrayList object what is the outcome of the program? (a) Both are able ... Framework of Java Select the correct answer from above options...
asked
Mar 1, 2022
in
Education
by
JackTerrance
java
util
0
votes
Q: Explain What is the worst case complexity of accessing an element in ArrayList?
What is the worst case complexity of accessing an element in ArrayList? (a) O(n) (b) O(1) (c) O( ... The Collections Framework of Java Select the correct answer from above options...
asked
Mar 1, 2022
in
Education
by
JackTerrance
java
util
0
votes
Q: Which of these method can be used to increase the capacity of ArrayList object manually?
Which of these method can be used to increase the capacity of ArrayList object manually? (a) Capacity() ... questions and answers pdf, java interview questions for beginners...
asked
Oct 25, 2021
in
Education
by
JackTerrance
essential-java-interview-questions
java-interview-questions-answers
java-multiple-choice-questions
java-mcq-with-answers
core-java-mcq
core-java-questions
0
votes
Q: Which of these method of ArrayList class is used to obtain present size of an object?
Which of these method of ArrayList class is used to obtain present size of an object? (a) size() ... programming questions and answers pdf, java interview questions for beginners...
asked
Oct 25, 2021
in
Education
by
JackTerrance
essential-java-interview-questions
java-interview-questions-answers
java-multiple-choice-questions
java-mcq-with-answers
core-java-mcq
core-java-questions
...