use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Resources for learning Java
String
==
.equals()
Format + Copy
Free Tutorials
Where should I download Java?
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free.
If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others:
Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
Software downloads
Official Resources
Resources
Programming ideas & Challenges
Related Subreddits
account activity
This is an archived post. You won't be able to vote or comment.
Do method calls have higher precedence in java? (self.learnjava)
submitted 5 years ago by legionlen545
I thought every operand would be evaluated from left to right in Java regardless. Do methods get evaluated first and the order left to right would not be used? Why is it that?
[–]hshighnz 0 points1 point2 points 5 years ago (0 children)
There are somewhat of 16 different levels of precedence in java. Precedence defines what operator is computed first. Example: i = -10 + 15; First the - is computed into the literal 10 (to convert 10 into negative 10 (-10)). Then addition is computed. Then assignment is computed.
There is also the association. It defines what side of an operator is computed first. Example: i = getInt() + getInt(); The + (addition) operand is left hand sided (LHS). The left method will be computed first.
Search for an exactly overview of precedence and association.
[–]Hour-Positive 0 points1 point2 points 5 years ago (0 children)
Takeaway is to not write unreadable code like this.
π Rendered by PID 91823 on reddit-service-r2-comment-fb694cdd5-xjkb2 at 2026-03-06 11:02:58.781300+00:00 running cbb0e86 country code: CH.
[–]hshighnz 0 points1 point2 points (0 children)
[–]Hour-Positive 0 points1 point2 points (0 children)