![]() Related Questions The Vector class provides the capability to implement a growable array of objects Latest Answer : A vector implements dynamic array, which can grow and shrink dynamically.It is similar to Arraylist with a difference that vector can be synchronized. it also contain some legacy methods. ... An anonymous class may implement an interface or extend a superclass, but may not bedeclared to do both. It must provide all of the methods in the interface and identify the interface in itsimplements clause. Latest Answer : interface enhance the concepts of inheritence. by calling multiple interfaces to class we can also inherinting more than a class indirectly ... What is the difference between the JDK 1.02 event model and the event-delegationmodel introduced with JDK 1.1 The JDK 1.02 event model uses an event inheritance or bubbling approach. In this model,components are required to handle their own events. If they do not handle a particularevent, the event is inherited An object must implement the Serializable or Externalizable interface before it can bewritten to a stream as an object. All tasks must implement the run() method, whether they are a subclass of Thread orimplement the Runnable interface. A thread class may be declared as a subclass of Thread, or it may implement theRunnable interface. Latest Answer : One more point :Vector defaults to doubling the size of its array, while the ArrayList increases its array size by 50 percent. ... Latest Answer : The Vector and ArrayList classes are implemented using dynamically resizable arrays, providing fast random access and fast list traversal—very much like using an ordinary array. Unlike the ArrayList class, the Vector class is thread-safe, meaning ... The Vector class provides the capability to implement a growable array of objects Latest Answer : Vector implements a dynamic array at run tme and it works as arraylsi,but it is synchronizedand not part of the collection framework ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||