Yes. On the server side, Java can be used for creating dynamic web applications in the same way that PHP, Ruby or any other language can be. There are a number of web development frameworks for Java, including Play, Ninja, and Grizzly. On the client side, Java applets can be deployed and run in browser by anyone who has the Java Runtime Environment browser plugin. However, with the release of HTML5, Java’s use as a client-side language is becoming less common.