r/learnprogramming • u/Positive_Field_5902 • 19h ago
Should I stick with Java for both backend and LeetCode if I have six months to prepare for an internship?
Hey folks, I’m a third-year CS student on the software engineering track. I have about six months to prepare for my required summer internship, and I’m aiming for a backend role.
I’ve used Java in my OOP course and I’m fairly comfortable with it, but I haven’t built a backend project yet. I also want to get better at data structures and problem solving. I’m considering two options.
- Stick with Java for both backend projects and LeetCode since I already know the language.
- Learn Python for backend and use C++ for problem solving. Python appeals to me because I’m interested in AI.
With six months to prepare, which approach would you take? How would you split your time between building a backend project and practicing data structures and algorithms?
5
u/Calligrapher-Whole 19h ago
Depends where your internship will be and what's the focus of the company. Large corporates use Java very often for their backends. If I were you instead of grinding leetcode I'd try out SpringBoot or JavaEE, Docker, CICD pipelines and look into microservice architecture patterns, since that is much more likely to be useful during a read BE development job
4
u/Eight111 19h ago
I'd stick to java for backend projects and learn python for leetcode, ai, and just general scripting.
1
u/Ok-Emergency-1825 16h ago
Java is a solid choice for both backend development and LeetCode preparation. Many companies still use it extensively, and the problem-solving skills you build with it are transferable. Have you looked into any specific frameworks for backend development you're interested in?
1
u/recursion_is_love 19h ago
Yes, generally; it good to be good at one thing than average at many things. Learn/try what other said it is better only after you get the job.
Squeeze the most of your Java skill out!
1
u/edwbuck 18h ago
Java is still huge on the backend. I'd know both Spring Boot and Quarkus, with Quarkus being the next hot thing.
Python can be used too, but it's more for the "we don't care about performance" and "just use the programmers we have to throw out something" crowd. Those websites tend to get updates into Golang, Java, and Rust when Python can no longer carry the load.
https://activetechsystems.com/blog/computer-languages/comparing-backend-languages-python-rust-go-php-java-c-node-js-ruby-and-dart/ f
1
u/danielinnov8 18h ago
the thing that'll actually get you the internship is one backend that's live with a link on your resume. auth, a real database, and one annoying feature like file uploads or webhooks, because that's what interviewers dig into and it's where you learn the stuff leetcode never touches. java for both is fine, an hour of problems a day next to the project, not instead of it
1
u/DriftingAndromeda 15h ago
Since you already know Java, I'd stay with it for both and spend your energy on the split instead of the language. Something like 60% on one backend project and 40% on data structures, with a few short sessions a week on the problems rather than one giant grind. For the project, make it deployable with a real database, login, and one tricky feature, then write down the tradeoffs you chose so you can explain them in an interview. Switching languages mid-prep mostly costs you time, and you can pick up a second one later once the basics feel solid.
1
u/Delicious_Bed_4410 11h ago
Sticking with Java for both makes sense since you skip the time spent fighting a new language and can put it into actually building. For the split, I'd do problems in the same language you'll explain in interviews, so when they ask about a HashMap vs a TreeMap you already know how Java handles it. Python for AI can come later as a side thing once the backend project is done.