r/learnprogramming • • 2d ago

Java or Kotlin for a beginner interested in backend development?

Hello,

I’m a beginner learning programming as a hobby, and I’m mainly interested in backend development.
I’m currently trying to decide between Java and Kotlin. I know both are used for backend development, especially with Spring Boot.

Which one would you recommend for someone starting out? Is Java still the better choice for learning the fundamentals, or would Kotlin be a good starting point too?

I’m not really focused on getting a job right now, just learning and building some fun projects.

Thanks!

2 Upvotes

19 comments sorted by

4

u/Dazzling_Music_2411 2d ago

Kotlin is better as language design, and much more fun; it doesn't suffer as much from the verbose and pedantic Java style - many java devs breathed a sigh of relief when it first came out. OTOH Java will have much more learning material available, as all the world's universities have been on its case since the late 1990s (for better or for worse).

Your call really, what style do you prefer to work with?

1

u/Intelligent_Role_824 2d ago

Thank you. I think starting with Java and switching to Kotlin sounds good.

1

u/bellsimon_20 1d ago

That sequence makes sense. Finish one tiny Spring Boot API in Java before switching; then you can compare Kotlin syntax while keeping the backend goal familiar.

2

u/I_Am_Astraeus 11h ago

Kotlin is a better language but Java is better IMO. If you're a beginner it gives you a much more academic view. The friction points are learning points, and you'll appreciate things like null handling more after having to actually deal with nulls yourself.

Just one man's opinion though, there's no right or wrong answer here.

1

u/Otherwise-Leather965 2d ago

Since you're learning for fun, Kotlin is a fine place to start and Spring Boot supports it well. Both run on the JVM and share the same libraries, so if you ever need Java later the switch is mostly just syntax.

1

u/YogurtclosetLow7064 11h ago

I'd personally recommend Kotlin. I prefer it over Java because it has cleaner syntax, less boilerplate, and some really nice modern features. It's also easier to read and write once you get used to it. Java is still great, but I think Kotlin is an excellent starting point, especially for fun backend projects with Spring Boot.

1

u/Technical_Ideal_5439 2d ago

Golang is vastly better, it is easier, designed for new users, lots of cool software in the Kubernetes and Internet space to play with if you want to muck around with opensource projects.

Java is better for getting a job, but I have no idea what that looks like for a new person/junior developer.

1

u/plastikmissile 2d ago

Kotlin is a much cleaner language and very well designed. I wish it was more popular.

0

u/delliott8990 2d ago

Personally, I think Kotlin is a bit easier from a syntax perspective.

0

u/Due-Result7928 2d ago

I’m not really focused on getting a job right now...learn AI...Kotlin...?...niche market. Is Java better for getting a job....as a junior you can not expect to be a developer for the backend. Learn typescript or javascript, html, css.

Agree wit u/Technical_Ideal_5439 go is nice and widely use.

2

u/Arsonist07 2d ago

I disagree. Not everyone needs to be a front end developer that moves to the back end. There’s really no point in doing that if you hate front end.

Just try to work your way in by networking with people and land an SRE or similar position. You’ll get tons of back end experience and you’ll get tons learn to automate

1

u/YouPeopleCantBeReal4 2d ago

Plenty of backend jobs for juniors

1

u/Due-Result7928 2d ago

Surely not and if you believe that you are going to be badly surprised.

1

u/YouPeopleCantBeReal4 2d ago

We’re hiring 4 in the next couple months. Not sure what you’re on about

1

u/Due-Result7928 2d ago

Prospect for trainee and juniors are way down. Microsoft is firing 60.000 bodies. Did you know ?

Los Angeles Time...easy to find..

For workers in their early 20s in what are being called “AI-exposed” occupations — such as software development — employment is 19% below where it would be if it had kept pace with employment in fields less exposed to being reshaped by AI, according to the Stanford Digital Economy Lab. The U.S. Census Bureau likened the employment decline to finishing college during a large recession.

What the industry is demanding now is workers who can oversee AI tools and not blindly accept their outputs — skills more common in seasoned workers, said Tracy Camp, the Computing Research Assn.’s executive director and chief executive.

The effect on hiring of young workers is so concerning that the association has reached out to industry leaders, urging them to invest in entry-level workers.

“If they don’t change how hiring is currently happening, they’re not going to have mid-level career people in a few years,” Camp said.

Students also are taking note. After a decade that saw the number of recent computer science and computer engineering graduates triple, to about 362,000 in 2024, enrollment began to drop last year. The latest data from the National Student Clearinghouse Research Center shows that by spring this year, computer and information science enrollment has fallen by 8.4% at four-year institutions.

But now tech giants like Microsoft, Meta and Google are turning to AI for a larger share of the code writing, and big employers like Amazon are shedding workers as spending on AI accelerates. Far fewer jobs in software development are being posted, according to a Federal Reserve analysis of the Indeed data.

Not even mentioning offshore development and B-1 visa...

Learn AI first and sharpen your mathematics..you do not even need to type anymore...

1

u/YouPeopleCantBeReal4 2d ago

We don’t use AI, don’t particularly care about what larger companies are doing

2

u/Due-Result7928 2d ago

You do not care but they stop hiring trainee and junior..it is the same for lawyers, media creation, insurance.

Programming as a craft is ending you like or not. Pretty sure soon end's user will be able to design and produce their own software. IT will be here to insure cohesiveness, architecture, support production (what will be left by AI).

For years computer's people were behind massive job cuts in many fields..train yourself..learn python..now it is their turns and they do not like it a bit.

After 30 years in this business with anything Unixes I can say that it is the first time I can see a really destructive technology for jobs in the software industry.