Have you read the API doc for the Comparable interface? Most of your questions are answered there.
Go to this site and Find Comparable in lower left, click on link for doc in main window.
Java...