File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes some questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "some questions" Watch "some questions" New topic

some questions

amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231
1: Objects may be duplicated using:
a) The new method, giving the name of the object to be copied as the parameter.
b) The clone method
c) The copy method
d) An assignment statement
2:Which Utility class would you use if you want to have an array which can be extended dynamically while your Java program runs?
a) An Enumeration
b) A Hashtable
c) A Malloc
d) A Vector
Ashish Kothari
Ranch Hand

Joined: May 16, 2003
Posts: 37
(1)clone method should be used.
(2) vector ,arraylist is a better option.
I agree. Here's the link:
subject: some questions