Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between add() and addElement()
method in Vector Class ?

Answer Posted / sandhya sree malladi

This method is identical in functionality to the add
(Object) method (which is part of the List interface).

add(Object ) is due the fact that Vector implements List
Interface and it is appeared since Java 1.2 when Vector was
moved to Collections: The collection classes from earlier
releases, Vector and Hashtable, have been retrofitted to
implement the collection interfaces.

addElement is "original" Vector's method....

Is This Answer Correct ?    16 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How big is a boolean?

981


If a class is declared without any access modifiers, where can the class be accessed?

1004


What are the three parts of a lambda expression? What is the type of lambda expression?

974


How big is a 64 bit float?

949


Can we convert stringbuffer to string?

956


How many bits is a char?

914


Why pass by reference is not possible in java?

962


Is the milky way in a void?

912


What are the various access specifiers for java classes?

999


How many arguments can a method have java?

975


What is <> used for in java?

1068


Does set allows null in java?

903


Is intellij better than eclipse?

1022


What do you mean by object?

912


What type of value does sizeof return?

948