I'm a student. I know that Java is used in so so many places.
Everywhere I see a lot of hate on java and PHP. Languages like python, rust, go gets all the love of devs. So, should I just learn these languages loved by many devs? Is learning java that important? I guess I can do the same thing in other languages too, much easily and cleanly in python.
In short java and php are conceptual close related, i always like to refer to PHP as javas ugly little brother.
rust and go both are languages that are designed for multi-core architectures and concurrency.
back to java.... the answer is clearly yes. I don't like java per se, but it's a solid OOP language.
PHP is a more difficult argument it has certain advantages because it's built in a stateless request-based approach. We can now argue about language design decisions, Type Coercion, JIT, GC and so on ....
Java may serve you well to learn because it is a widely used, highly understood language. It will teach you the basics of Object Oriented Programming. More than Java, I think learning general programming concepts is of higher importance. You can transfer the skills you learn in one language to other languages more easily.
Pick a core language to learn, and learn it really well. This will allow you to think in that language and transfer your skills to other languages more easily.
To answer your questions.
JavaScript and Python are my two goto languages. I love them, they're easy to use, versatile and will grant you all the power you will need to be a killer dev.
Ben Buchanan (200ok)
I make some bits of the web.
Better to think about it this way:
It's unlikely you'll work your whole career in a single language. It's far more likely you'll move between languages, so it's good to avoid the single-language blinkers. Treat specific languages as secondary to your conceptual knowledge of programming.
Don't "learn java". Learn object oriented programming, maybe in Java or C#. Also learn functional programming, maybe in Scala or Haskell. Learn something else like Python, Rust, Elixir...
As for "what will get a job" you need to work that out for the particular job market where you are trying to get a job. It's different in different markets.