java interface public method