What is Java?
Welcome to Java! Java is a popular language known for its modularity and reliability. As of 2024, 30% of all coders use this amazing language.
Object-Oriented Programming
Object-oriented programming (commonly abbreviated as OOP) is a coding strategy using classes and objects to handle data. Data is stored in classes, and other classes can access this data through Objects.
JVM + Code Once Policy
You can copy code over from one device to another, and it would run properly. This set Java apart from the other programming languages at the time, which at that point couldn't do this.
Tips for Java (and for programming to some extent)
COMMENT YOUR CODE. Comments are there so other programmers can understand your code. Stick them in important sections, like method/class headers and any confusing logic. Good comments can save hours, days— even weeks of your and your team's time, which is especially important when the season starts.
Declare all of your variables at the method or class header. It's so much easier to have all of your variables in one spot rather than searching around your thousand-line file, looking for a specific important variable (definitely not from experience).
Make your code as simple and efficient as you can. If there is a specific value you constantly use, turn it into a variable. It'll help you when you or other people inevitably modify your code.
Last updated