Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

J Zak

Greenhorn
+ Follow
since Oct 24, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by J Zak

i just reviewed the errata at this link https://www.selikoff.net/java-oca-8-programmer-i-study-guide/  and it states:

In the third to last paragraph, “except boolean and String” should be “except boolean” since String is not a primitive

Hello,

I am currently going through the OCA 8 certification book "Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808 (p. 54). Wiley. Boyarsky, Jeanne"

In the "Arithmetic Operators" section of chapter 2, the book states:

All of the arithmetic operators may be applied to any Java primitives, except boolean and String



I am getting a bit confused by this statement because String is not a Java primitive type. Further, the book itself states later than "+" can be used with String to achieve concatenation.

What am I missing here? I would greatly appreciate your guidance in understanding the rule that book stated.

Thanks