What is Vector?Can you elaborate how Vector is Thread safe?

Answer Posted / kk

Vector is a growable array.

The methods in Vector class are synchronized which makes
vector thread safe.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of return statement?

620


What do you mean by Function Overloading in java?

620


What is the use of singleton?

506


What is the meaning of nullable?

572


How to declare objects of a class ?

582






Why we go for collections in java?

538


Can we sort hashmap in java?

524


Can private class be extended java?

558


what do you mean by java annotations?

540


Explain wrapper classes in java?

524


Can we declare an interface as final?

568


What is native method in java?

561


What are different types of inner classes ?

551


How does singleton class work?

524


Where we write javascript code in html page?

553