Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

some questions

 
amit sanghai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(1)clone method should be used.
(2) vector ,arraylist is a better option.
Ashish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic