what is the difference between ArrayList and Vector

Answer Posted / kishore kumar naidu n

ArrayList Vector
1>. NOT synchronized 1>.Synchronized by Default
2>. Use only Iterator to 2>.Can use Iterator and Enumerator
access elements interface to access elements
3>. It increase it's size 3>.Default it double it's size
by 50% if it run out
off room
4>. No default size 4>.Default size is 10.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the format specifier?

727


What is the largest long allowed by java?

801


What does compareto () do in java?

797


What occurs when an object is constructed?

783


What is a hashmap used for?

910


Are primitives objects?

802


Is map ordered in java?

730


What is java and why do we need it? Explain

816


Why java strings are immutable in nature?

801


Are arrays immutable in java?

761


How can you traverse a linked list in java?

911


what is singleton class in java?

823


'A class is a template for an object' explain this statement.

765


List the features of java programming language.

794


Why do you canvas?

791