Yes you can remove Java and to totally delete it's as well using the
Synaptic Package Manager and search for 'Java' then right click and
select for complete removal.
You'll find some web sites will complain that Java isn't there and
offer to install it for you. If you don't allow it then the site may
or may not work as the writer intended. Depending where you go on-line
this may be a minor or major irritation