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

How can a gui component handle its own events?

588


When should a function throw an exception?

597


What is a java applet? What is an interface?

627


What is regex used for?

538


What do you mean by stack?

635






What is the use of singleton?

506


Can an interface be defined inside a class?

515


Why java is platform independent? Explain.

597


How do you start a new line in java?

511


What is parsing in java?

527


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

622


Why static functions are used?

563


Does constructor be static?

562


Why are there no global variables in java?

577


Can each java object keep track of all the threads that want to exclusively access it?

532