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

Why string objects are immutable in java?

1042


What is mnemonic in assembly language?

1074


Why declare Main() inside the class in java ?

1060


Explain public static void main(string args[]).

1180


Can we have 2 main methods in java class?

1023


why using interface interface ?

2042


Is nan false?

979


What is a ternary operator in java? What is an interface?

1001


Can we declare an array without size in java?

999


What are the three types of design patterns?

963


What is the difference between stringbuffer and stringbuilder class?

1106


What is java thread dump, how can we get java thread dump of a program?

1000


Can we catch more than one exception in a single catch block?

1075


What is the size of int?

1085


What is hasnext in java?

1016