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

Can we clone singleton class in java?

529


What is the difference between compile-time polymorphism and runtime polymorphism?

574


What is the difference between the prefix and postfix forms of the ++ operator?

565


What is matcher in java?

520


What is private static in java?

583






Can you inherit from an abstract class java?

541


What are the restrictions imposed by a Security Manager on Applets?.

2079


What is the base class of all exception classes in java?

578


What is the file type?

565


What is the purpose of checked and unchecked exceptions in JAVA?

571


How can we pass argument to a function by reference instead of pass by value?

591


What are the different types of data structures in java?

498


How do you pass by reference?

544


What do you mean by an interface in java?

578


What are the 8 primitive data types in java?

555