How to show the category of custom taxonomy

Usually I used has_term() and the_terms().

These are the examples

if( has_term('', 'genre') ){
    // do something
}
the_terms( $post->ID, 'category', 'categories: ', "https://wordpress.stackexchange.com/" );

OR, I used this to get a list get_the_term_list()

for example

echo get_the_term_list($post->ID, 'category', '', ', ');