Elasticsearch 9200 and 9300

9200 is restful api, 9300 is java api
now,I don't know which one to choose.
9200 can do more than 9300
for example,9200 can use "_cat/indices",but 9300 can not
but my project is use java,
i use both 9200 port and 9300 port in my project ?

If you are just starting out, I would recommend you use the Java REST client which uses HTTP over port 9200 as the Java Transport client is being deprecated.