Java is mainly usable on mobile phones, even there not much in last days, but it can be used as part of HTML, but there are so many ways to supercede it e.g. Python, JavaScript, PHP, SQL etc.