Sort:  

Scripting languages are faster to code and easier to maintain.

Javascript is especially useful because it can talk to both websites (HTML) and make server calls easily while not blocking the code waiting for a response.

Basically the only reason to learn Java over scripting is that it's faster execution and used for a bunch of random stuff.

That makes sense, thanks.