Which of the following statements is true regarding Vectors with no specified base type?

► A base type is needed, because Java needs to know how to allocate memory.
No base type is needed, because Java will use the Object class as a base type. Click here for detail
► If a base type is not specified the code will not compile.
► No base type is needed because Vectors default to storing String objects

Leave a Reply

Your email address will not be published. Required fields are marked *