In this paper, we search the classification which is optimal according to the given quality criterion (e.g. misclassification error, accuracy, risk, etc.) using the ROC curve of the classification rule. Finally, we use the results for the comparison of the given classifiers.