diff vector arraylist

Answer Posted / chandra

1) Arraylist is not synchronised while vector is
synchronised.

2) ArrayList doesn’t have a constructor for specifying the
incremental capacity, where as Vector has a constructor to
specify the initial capacity and incremental capacity.

3) Vector is serialized but arraylist is not.

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a class a subclass of itself?

588


Which containers use a border layout as their default layout?

609


Should synchronization primitives be used on bean methods?

552


Name three subclasses of the component class?

615


Why is actionform a base class rather than an interface?

570






Name three component subclasses that support painting?

615


What are the diff types of exception?

558


What are externizable interface?

583


what is a portable component?

1467


Where we can write Rmi registry in the code, without having to write it at the command prompt?

2262


How to deploy Jar, War files in J2EE?

2170


Explain the advantages and disadvantages of detached objects.

577


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

547


Why doesn’t the focus feature on the tag work in every circumstance?

566


What is RMI and what are the services in RMI?

608