File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Utility Methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Utility Methods" Watch "Utility Methods" New topic
Author

Utility Methods

Kedar Nath
Ranch Hand

Joined: Sep 02, 2008
Posts: 53
What are utility methods....
Punit Singh
Ranch Hand

Joined: Oct 16, 2008
Posts: 952
Collections.sort(), Collections.binarySearch(),
Arrays.sort(), Arrays.binarySearch(), Arrays.asList();

SCJP 6
Kedar Nath
Ranch Hand

Joined: Sep 02, 2008
Posts: 53
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

Joined: Oct 16, 2008
Posts: 952
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.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Utility Methods