What is an array and a vector? How they different from each
other?

Answer Posted / suhas

1)Array is a collection framework class.

Vector is a legacy class.

2)Array is not synchronised by default

Vector is Synchronised by default

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by aggregation?

824


What is nan inf?

694


what is the difference between thread and runnable types? : Java thread

766


What is a generic type?

760


What is the default value of byte datatype in java?

690


What is anagram word?

750


Why is a singleton bad?

755


Is jdk required on each machine to run a java program?

1011


Can there be an abstract method without an abstract class?

731


What is anti pattern in cyber security?

739


What is the difference between ArrayList and Vector? which one is better in Java

830


What is data type modifier?

715


What is a private class in java?

733


How is java created?

729


Explain the usage of this with constructors?

751