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 java arraylist hold different types?

748


What is Recursion Function?

900


What does the “final” keyword mean in front of a variable? A method? A class?

790


What do you know about java?

741


What is the difference between length and size in java?

733


How to find the largest value from the given array.

778


What is keyword in oop?

770


What is the difference between serializable and externalizable interfaces?

812


why we use merge option in hybernate pls give a ex snippet

1713


Is java platform independent?

782


Define reflection.

765


What is codebase?

778


1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?

4419


What are the differences between getting and load method?

766


What is the benefit of using enum to declare a constant?

885