Answer Posted / mandip
Ans 1: vector can store hetrogeneous data element,where
as array can stote homogeneous data element.
Ans 2: vector are store non-primitive type data element,
where as array can store primitive type data element.
Ans 3: wrapper classes are used in vector,where as in array
wrapper classes are not used.
| Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
When will we prefer to use set and list in java and why?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
What is the difference between the boolean & operator and the && operator in java programming?
Can I overload to string method
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
What is a return in java?
Why call by value prevents parameter value change?
How many arguments can be passed to main ()?
What is quick sort in java?
How will you add panel to a frame?
What is e in java?
What is the use of optional ?
Why is multithreading important?
What is connection class in java?
What is java command?