Answer Posted / meghana
Array:
1)Size of array need to be declared in advance.
2)Once declared array can't grow in size.
3)Array can store primitive data types.like int,char,...
Vector:
1) No need to declare the size of vector. You may give its
size & you may not.
2) Vector can always grow in size if you start adding more
element to it than your declared size.
3) Vector can store only object references. Storing
primitive data types is not possible in case of vectors.
| Is This Answer Correct ? | 25 Yes | 2 No |
Post New Answer View All Answers
What is parsing a sentence?
What is casting in java programming?
What are the different ways of creating thread?
What is the relationship between clipping and repainting under awt?
Which collection is sorted in java?
What are the features in java?
What is array class in java?
Why is java called the platform independent programming language?
What variables are stored in stack?
How to do a true java ping from windows?
what is static import in java? Explain
What is serialization in java?
What is arraylist class in java?
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea
Explain how to force the garbage collection in java.