<< Chapter < Page | Chapter >> Page > |
This tutorial lesson is part of a series of lessons dedicated to the AP Computer Science A Exam .
The purpose of the series is to help you to better understand some of the material that you will find on the website that provides information for theexam.
For example, if you access the AP Computer Science Course Description and scroll down to Appendix A titled AP Computer Science Java Subset , you will find the following specification :
(Note: This is the wording that appeared on the website on March 1, 2011. It may change over time.)
May be clear to some, but not to others
While some students and their homeschool parents may know exactly what is meant by this text, others may not. Therefore, my objective will be toelaborate on and attempt to clarify such specifications from a technical viewpoint to help those students and their parents get a better understanding of where they need toconcentrate their efforts.
In this lesson, I will provide program code that illustrates some of what the student is expected to know about the arithmetic operators.
I recommend that you open another copy of this document in a separate browser window and use the following links to easily find and view the figuresand listings while you are reading about them.
I recommend that you also study the other lessons in my extensive collection of online programming tutorials. You will find a consolidated index at www.DickBaldwin.com .
According to Sun's Summary of Operators website , the Java arithmetic operators are shown in Figure 1.
Figure 1 . Arithmetic Operators. |
---|
+ Additive operator (also used for String concatenation) - Subtraction operator * Multiplication operator / Division operator % Remainder operator |
Five arithmetic operators
If you compare Figure 1 with the specification , you will see that all of the arithmetic operators are included in the Javasubset. Unlike the case for primitive variables discussed in an earlier lesson, none of the arithmetic operators are excluded from the subset.Therefore, the student is expected to understand how to use all of the arithmetic operators in order to successfully complete the exam.
Notification Switch
Would you like to follow the 'Ap computer science a, clarification of the java subset' conversation and receive update notifications?