<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Java Order of Operations :: CC 210 Textbook</title>
    <link>https://textbooks.cs.ksu.edu/cc210/02-data-types-math/08-java/04-operators/video/index.html</link>
    <description>Resources Slides Video Script We all probably learned the acronym PEMDAS for the order of operations in mathematics. It stands for parentheses, exponents, multiplication &amp; division, addition &amp; subtraction. When faced with a large math equation, we can use this list to understand which operations should be performed first.&#xA;Programming languages such as Java also enforce an order of operations. In fact, it is very similar to the one we’re already familiar with from math. Just like in math, we must evaluate everything in parentheses first. Then, we perform any prefix actions, or symbols before the variables, such as increment, decrement, or negative when they are placed in front of the number. Following that, we deal with any postfix actions, such as increment or decrement after the variables. Finally, we can do multiplication, division, and modulo operations, then addition and subtraction from left to right just like we do in math. Finally, the assignment operator is handled last, storing the result from the right-hand side into the variable on the left.</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 28 Dec 2022 18:07:21 -0600</lastBuildDate>
    <atom:link href="https://textbooks.cs.ksu.edu/cc210/02-data-types-math/08-java/04-operators/video/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>