This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am confused by the following code of a scjp. original code: which of the following will successfully create an instance of Vectort class and add an element? a) Vector v=new Vector(99); v=99; b) Vector v=new Vector(); v.addElement(99); c) Vector v=new Vector(); v.add(99); d) Vector v=new Vector(); v.addElement("99"); The given ans: d does that means only only a String can be add into a Vector?I dont knwo which of the following can be add into a instance of a vector on earth,a byte or int or char or String?