Differentiate Vector and ArrayList?
Answer Posted / pranab dutta
Vector is synchronized
Arraylist is not synchronized.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is flag in python?
What is a java list?
Can java program run without jre?
Discuss 2D arrays.
Does a class inherit the constructors of its superclass in java programming?
How do I remove a character from a string in java?
How many types of voids are there?
What is the purpose of the return statement?
What methods are used to get and set the text label displayed by a button object?
What are different types of expressions?
What are different access specifiers in java? Explain
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
What is the purpose of a volatile variable?
What is the benefit of abstract class?
What is the difference between the font and fontmetrics classes in java programming?