Java is an entire programming language resembling C or C++. It takes a sophisticated programmer to create Java code. And it requires a sophisticated programmer to maintain it. With Java, you can create complete applications. Or you can attach a small group of instructions, a Java “applet” that improves your basic HTML.
Running Java in a browser requires the Oracle Java runtime to be installed. This can be downloaded from https://www.java.com/en/download/.