There are many options for website development.
java and php development
First of all, neither java nor php can realize the full stack development of a website.
1, java gives a heavy feeling, the advantage is that the framework, components, middleware rich, in addition to the web, there are cloud computing, big data, artificial intelligence frameworks, you can make a giant service system, such as large Internet company products, scalable, but the system architecture, integration, optimization capabilities require a high level.
2, php compared to light, but the ability to limit the web, there is a very mature mvc framework optional, small and medium-sized web projects available, feel that in the past few years php fall out of favor.
javascript development
Currently, javascript claims to be able to achieve full-stack development, front-end js+html+css, optional jquery, vue.js and other front-end frameworks; back-end nodejs, there are also frameworks.