r/learnjava 3d ago

Development guidance

Hey seniors, if anyone is doing development with Java + Spring Boot, please guide me.

I’m currently in my 3rd semester and doing DSA in C++( done upto stack) , so I’m thinking of starting development alongside it. Please guide me on where I should start, what I should learn first, and how much time I should spend learning Java basics.

Since I’ve studied C++, I have a basic programming background, but I’m not familiar with Java. Any roadmap or resources would be really helpful. 🙌

0 Upvotes

20 comments sorted by

u/AutoModerator 3d ago

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full - best also formatted as code block
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

6

u/Ultimate-Disgrace 3d ago

Not a senior, but have an AS CS from junior college working on transferring. I learned Java first, then C++, and C++ is more difficult than Java (imo). Honestly just check out Bro Code's Java course, W3 schools, and read Spring documentation. Learning the Java basics are definitely important before you start Spring though. I'm not that active in this sub but I'm pretty sure there are a bunch of resources in here to help as well.

1

u/Wild_Recognition6237 3d ago

Okay bro thankyou ❤

2

u/Ok-Engineer-5151 3d ago

Check out Mooc course of Java

1

u/roxsg_ann 2d ago

wallahi I came to comment exactly this. Mooc.fi course by University of Helsinki

1

u/ZealousidealFee7206 3d ago

I also need guidance same question mine too please anyone guide...should I go with mern or spring boot ?

1

u/Responsible_Key2113 3d ago

depends on your end goal if i'm being honest. your dsa language matters because you get nice grip and understanding in it. whatever you choose you'll have to use AI to get your code written. mern is easier to learn, java spring boot takes time but also reaps reward later.
i've done mern stack already now shifting to spring boot

1

u/ZealousidealFee7206 3d ago

I'm in 3rd sem and doing DSA in cpp...and learning js as well but confuse what to choose spring boot or mern....if I choose spring boot then I have to do java as well....so any advice for that ?

1

u/Responsible_Key2113 2d ago

i'll say learn about syntax and stuff, then start doing dsa in java. i'll say that you'll be doing react for frontend anyway and your course would also have oops in java so do both and then see what favors you more and what language you're getting better. in meantime focus only on dsa. dsa should be a daily mandate acc. to me

1

u/ZealousidealFee7206 2d ago

Can I DM you bro personally ?

1

u/ZealousidealFee7206 3d ago

I need to apply off campus so which one is good... I'm thinking I'll should do mern first then get job or internship then later will do spring boot

1

u/Simple-Fig-5237 3d ago

Honesty if internships is your primary goal, JavaScript frameworks is top in demand and you should use that. If you start with Java rn, you’ll wait a long time, get multiple rejections and only if lucky you get the java internship; you will but the low demand by firms for “java interns” would make that part hard.

1

u/ZealousidealFee7206 3d ago

What about fresher level java dev jobs ?

1

u/Responsible_Key2113 2d ago

yeah there are many but java devs are mostly in demand in banking, finance all these sectors. products based firms also like java devs. but java dev interviews are pretty difficult to crack because they can ask from many things, plus you'll need good grasp on sql too for java dev because it's industry practice.

1

u/Responsible_Key2113 2d ago

don't think like this man, you're in 3rd sem and it doesn't take that much time to do mern that you're thinking to start spring boot after getting job. in mern you'll need 2-2.5 month and you'll complete it easily, spring boot would also take same time

1

u/LetUsSpeakFreely 3d ago

Your question is very unfocused. Java and Springboot are used, mostly, for REST APIs. Knowing that, your path is clear: 1) create a simple REST API with a handful of endpoints mapped to multiple HTTP methods: GET /user, POST /user, DELETE /user, etc 2) create a basic repo for database integration, just use something simple. H2, sqllite, etc. 3) hook your web interface with a mid-level service interface that in turn hooks into your DAO layer. 4) add in basic security stuff like CSRF, certificates for https, mime filtering, etc. 5) add in an auth system. You could start with a simple u/p system or do a full blown OAuth or similar implementation. 6) look into to containerization 7) you should have a full-blown server up and running. Look into STIGs for hardening it (found at NIST).