What is difference between add() and addelement() in vector?



What is difference between add() and addelement() in vector?..

Answer / Shrutkirti

{"difference": [n "add(): adds an element at the end of the list."n "addelement(): adds an element at the specified position."n]}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Difference in the use of print, println, and printf.

5 Answers  


What is a parent class in java?

1 Answers  


What is the function of http?

1 Answers  


What is polymorphism and what are the types of it?

1 Answers  


How do you reverse sort a list in java?

1 Answers  


Do we have pointers in java?

1 Answers  


Explain the difference between protected and default access.

1 Answers  


What is the purpose of a statement block?

1 Answers  


We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.

2 Answers  


What is the importance of main method in Java?

1 Answers  


How can you debug the Java code?

6 Answers   BirlaSoft,


what is singleton in java?

1 Answers   IBS,


Categories