In this case, both should be given, but the main one is more important since it appears in the overview section generated by Javadoc. See http://docs.oracle.com/javase/7/docs/api/java/util/List.html#get%28int%29 for an example how such things look in Java itself.