Honestly speaking, java is a general programming language, just like python. So it can work for the front-end as well as the back-end. To declare a conclusion, if we use a scale on its performance basis, then we can say java is a server-side language since many well-known websites are using java for handling the back-end.