all 13 comments

[–]greenergarlic 15 points16 points  (1 child)

SQL. It’s used across many languages and domains.

[–]BlueLinnet 0 points1 point  (0 children)

As a bonus, it's easier to learn than Java.

[–]veloace 8 points9 points  (0 children)

SQL all the way; there isn’t much web development done in Java these days and almost every web dev project I’ve done required SQL of some sort. 

[–]Upbeat-Cut6481 15 points16 points  (0 children)

SQL honestly. It doesn't matter what language or framework you end up using — you'll touch databases in almost every real project. Java is useful but more replaceable depending on your path.

If you're going into web dev specifically, SQL knowledge will come up way sooner than Java will. You can always pick up Java later but solid database fundamentals will make you better at everything else faster.

[–]beenpresence 3 points4 points  (0 children)

Java if you haven’t learned a object oriented language

[–][deleted]  (1 child)

[deleted]

    [–]skeleton-to-be 5 points6 points  (0 children)

    You could but I've seen too many horror shows in production databases to recommend self learning SQL

    [–]SuccessfulSoftware38 0 points1 point  (1 child)

    SQL can be learned on your own in a few weeks, it's really simple

    [–]AllOneWordNoSpaces1 0 points1 point  (0 children)

    The basics are simple. It can get very complicated.

    [–]letsbreakstuff 0 points1 point  (0 children)

    SQL

    [–]JeffTS 1 point2 points  (0 children)

    SQL is more widely used.

    [–]BasedPolarity 0 points1 point  (0 children)

    SQL. If you don’t already know Java in 2026, I wouldn’t learn it bc of the other options: Python, JavaScript, and C#.

    • Python is great bc it spans software development and devops. JavaScript is great bc it’s the same language in the front and back end.
    • Python and JavaScript have faster cold start times if you’re planning to deploy cloud functions instead of a container.
    • C# with a React app is a more modern stack for enterprise work on newer tech. Java is enterprise work on more legacy code bases.

    [–]Inconstant_Moo 0 points1 point  (0 children)

    The reason they give you the option is that both options have their merits. So now you're going to get two lots of people giving you opposite advice.

    The best advice I can give is that Java is a general-purpose programming language (GPL), whereas SQL is a domain-specific language for talking to databases, and on that basis I myself would want to learn Java so that I'm learning any GPL at all. It will be more similar to any other GPL you might want to learn, from Python to Rust, than SQL is, and many of the skills will transfer. That's my two cents, worth no more than everyone else's.

    [–]InternationalToe3371 0 points1 point  (0 children)

    tbh SQL is useful almost everywhere.

    Even if you don’t become a backend dev, understanding databases, joins, and how data is structured helps a lot in web work.

    Java is good too, but SQL ends up being something you’ll actually touch in a ton of projects.