File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Utility Methods

 
Kedar Nath
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are utility methods....
 
Punit Singh
Ranch Hand
Posts: 952
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Collections.sort(), Collections.binarySearch(),
Arrays.sort(), Arrays.binarySearch(), Arrays.asList();
 
Kedar Nath
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more doubt.
In page 558,K&B book, there is diagramtic representation of collection interfaces and it class.
how are the array and Collections classes related to the other class in the diagram(i mean , with classes that implement the interfaces)

Is there any relation like extends ?? :?:
 
Punit Singh
Ranch Hand
Posts: 952
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No there is no extends or implements between them.

Collections and Arrays utility classes has just methods, they do not have any properties.
Those methods take these collection classes like List, Set etc as parameters only, and performs operation on that and simply returns them to caller.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic