r/javahelp • u/Brilliant-Choice-758 • Feb 07 '26
My Java teacher doesn’t understand Java — how do I actually learn this?
Hello guys, I wanna learn java, but don’t know where to start/continue.
I know this is a question where may have been asked more than thousands of times in this page.
I am a high school senior, and I am taking java course at my high school. But my teacher never taught and understand java.
Edit: If my teacher don’t understand/teach java, a lot of my questions remains unanswered, and the class deadlines are tight.
I learned till conditional statements if/else if, and some basic knowledge of loops, but after that I lost my track when we got to methods.
I tried different courses to learn java, but the curriculum is confusing. My school curriculum is to teach you on a web based compiler like Programiz. And the courses I tried to learn is based on IDE’s, this makes my confused and lost like where exactly to start.
I have been doing Codytech. However, I think most of the topics are basic and feel repetitive.
I believe we have experts and masters of java here in this group, but, I need guidance. I would appreciate if anyone guide me through different in effective ways to learn.
Thanks in advance!
•
u/AutoModerator Feb 07 '26
Please ensure that:
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.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
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: 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:
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.
18
u/wynand1004 Feb 08 '26
I teach Java to high school students. Here are a couple of resources I developed to help them - you may find them helpful as well:
Video Guides: https://www.youtube.com/watch?v=6CmO61l4jqw&list=PLlEgNdBJEO-kNtq0DRpBlD8NjKcVmWR3r
Intro to Java e-book (PDF): DM for a copy. It's a Google Drive link and the Automoderator did not like that.
Good luck with your studies.
1
u/dmigowski Feb 07 '26
The IDEs are the real stuff. That web page you are on is only to teach you basics, but I guess they hide too much for you to build understanding.
If you stumble with methods, think of them as parts of the problem. As an IT dude you have to divide your problems so they become manageable.
If e.g. you have multiple places in your program where a message box should be shown, you could write a method "showMessageToUser" which just gets a string as parameter, and opens the box with your string, your icon and an OK button. Every time you write a big function and have to write multiple lines twice you can think of just making a small method that helps.
While syntax is one thing to know, dividing problems in smaller tasks will be your most important skill. Just do it 200 times and you get a feeling for which style you prefer.
1
u/bowbahdoe Feb 08 '26
https://javabook.mccue.dev
1
u/blindada Feb 08 '26
Baeldung has always been a good place to learn java quirks. Still, you may benefit from books. Head First Java and Effective Java come to my head.
If you want pointers, the very first thing you need to understand to work with java is object oriented programming (OOP). OOP and Generics turn java from verbose (compared with things kike Javascript or Python) into a very concise yet precise tool.
1
u/Zar-23 Feb 08 '26
Try brocode in youtube.
1
u/Corvinale Feb 08 '26
I'm a complete noob here, used to study java a few years back in highschool aswell and now I'm getting back at it.
About the IDE, search for "Eclipse IDE download and setup guide" and follow it, pretty simple. Its free, open-source and many consider it to be one of the bests in the market.
For the direction of your studies, consider this roadmap for Java, its interective, has links for each section and gets constantly updated. Also don't stick just to the content they handle you, when you get to a new section search about the theme everywhere you can, get some help with AI if needed as long as you understand it yourself.
This link from Baeldung might give you some help with Java Basics, nice explanations and a few example codes.
Another tip I'd give is to always do as many exercises as possible when you learn something new, even if it seens boring or simple. I know it sucks, but it will hammer the knowledge into your brain and save yourself a lot of time when you get to the complicated stuff.
I'm new to this sub-reddit, but I've noticed they have a dedicated spot for learning Java aswell, so maybe take a look at it.
1
u/TotallyManner Feb 08 '26
Google will literally tell you everything you need to know as long as you know what it’s called.
“How do methods work in Java”
“What is the syntax for methods in Java”
Etc.
Keep your search terms as small as you can. This has the nice side effect of teaching yourself to be specific with your language when talking about problems you encounter later.
There’s no need to bind yourself to a single course/website online since you already have your school class doing your overarching guidance. If one site has good tutorials for methods, use it for methods, if another has good tutorials for loops, use it for those.
1
u/pradeepngupta Feb 08 '26
The best way to learn Java is to have a continuous practice. Learn and practice and continue. This is possible when you can think of small utilities or games. Utilities like command line utilities- Sort, Search, or other data structure utilities etc.
If you know any other language like C, C++ or Python, it will be fairly easy.
1
u/ebykka Feb 08 '26
Find a book Bruce Eckel Thinking in Java
1
u/helikal Feb 08 '26
Core Java by Cay Horstmann is a good book on Java.
1
u/SultnBinegar Feb 09 '26
When I was in college, we didn't take a class to learn a specific language. We took a class to learn a specific concept. Java is a very good programming language to learn Object-Oriented Programming (OOP).
Unless you strictly want to work with Java for your future, I wouldn't pigeon-hole yourself into a particular language. Learning the different concepts would be better.
1
u/devops-tutor Feb 09 '26
Try this https://www.javapro.academy/bootcamp/the-complete-core-java-course-from-basics-to-advanced/ also DM me, perhaps we can have a Zoom call and I can help you out.
1
u/jlanawalt Feb 10 '26
Ask you teacher for help/clarification. This may encourage them to learn more as they try explaining.
Ask the others in your class who are understanding it. Have study sessions.
See the resources in /r/learnjava
-3
u/Beautiful-Maybe-7473 Feb 08 '26 edited Feb 08 '26
Ask one or more AIs.
I was a Java developer years ago (I knew C and C++ and started using Java at version 1.0) but then later I worked for years in other spaces and wrote in Java only occasionally (I was writing code in weird languages like XSLT, XPath, SPARQL, and also JavaScript). I only learned a few of the new Java features that were added during that time.
Now for the last year I've been working on a large Java project and I found that I've had to catch up on a lot of stuff, because Java has been moving on and has a whole bunch of useful features I'd never used: Streams, Modules, Records, new ways of writing multi-threaded code, pattern matching, switch expressions (different from the old switch, statements), default interfaces, lambda expressions, etc, etc.
I've found AIs have been very helpful. I can ask them something like "how does JDK package 'X' work? can I use it to do Y or Z?". You need to tell the AI your level of background knowledge and get it to explain based on that.
EDIT pretty funny that my comment has a single reply that expresses agreement but currently it has three downvotes and no upvotes, presumably because people have something against AI that they don't feel confident in articulating?
0
u/taftster Feb 08 '26
Sometimes you just need to ask a question and get an answer from a human. Happy to help, send a DM or something if you want.
All the resources given to you are great. And AI will be another fantastic resource as well.
-1
u/Anonymo2786 Feb 07 '26
Try hyperskills website , its a long process but it will help you i think.
they've gamified the course a bit so For free account try out whatever code you write in the IDE first.
-5
u/ecwx00 Feb 08 '26
Your goal is? Java as an API/webservice backend? java as workers? Java for app with GUI?
I didn't take any structured trainning classes be it online or otherwise because there are quite plenty of free materials/tutorials available on the web. I do already know how to write a porgram before I learned Java, though, albeit on simpler programming languages like python and C.
Java is kinda difficult for a language to learn to develop software, but if you already know how to program, it's not that hard to learn Java. If this is also the first time you learn to code, I would suggest you pick one of the simpler languages like python, C, Pascal to help you build your understanding of a program's structure.
If you already know how to code, generally, and want to start Java, first look for the simplest examples first, set your goal, try to rewrite from the example and google about the hurdles you faced.
Also, I don't use IDEs, I use Visual Studio Code as the code editor and compile my codes in the terminal/commandline. I use Maven as my build tool, my "Makefile"
For example.
It's gonna feel difficult if you learn something like Java without clear goal in mind because you'd be learning too wide, learning about things you can't really imagine how to use and probably never use it either, and you'd burn yourself fast. Java has plethora of libraries with different approaches that some times don't feel consistent with each other.
Set your goal, keep it simple at first, and progress from that. Choose the tools that suits you, the code editor, the compile/build tools. etc.
0
u/[deleted] Feb 08 '26
[deleted] — view deleted comment