what is the difference between ArrayList and Vector
Answer Posted / devarathnam
Hi...
ArrayList is not synchronized(not Thread-safe)but Vector is
Synchronized(Thread-safe)
ArrayList gives u better performance than Vector
| Is This Answer Correct ? | 28 Yes | 3 No |
Post New Answer View All Answers
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
Can we override a variable in java?
What is annotation in java?
Enlist diffrent types of inheritance supported by java?
Why is java multithreaded?
What is the final method?
What all methods are used to prevent thread execution ?
What is static keyword?
What happens if an exception is throws from an object's constructor?
How can we create a thread in java?
What is meant by local variable and instance variable?
Can a constructor have different name than a class name in java?
Explain a few methods of overloading best practices in java?
What are the 6 functions?
What are loops in java?