[HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
OCAJO1
Posts: 221
Joined: Mon Nov 26, 2018 2:43 pm
Contact:

[HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]

Post by OCAJO1 »

Page 122, "of the expression a = a + b is the value produced by the expression on the right of == operator,"

I don't think he means to say, of a logical operator (==), so it must be, of an assignment operator (=).

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]

Post by admin »

Yes, but I see = and not == at that place.

OCAJO1
Posts: 221
Joined: Mon Nov 26, 2018 2:43 pm
Contact:

Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]

Post by OCAJO1 »

You must be looking at a later build. In build 9.0 it shows ==. Either way, obviously it was just a typo.

Username987654
Posts: 95
Joined: Sat Dec 26, 2015 6:37 pm
Contact:

Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]

Post by Username987654 »

It is, in fact, an expression made by combining two expressions - a and a + b using the = operator.
should be
It is, in fact, a statement made by combining two expressions - a and a + b using the = operator.
?

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD Pg 121, Sec. 5.1.2 - difference-between-an-expression-and-a-statement]

Post by admin »

No, this sentence is correct. We already know that a = a+b; is a statement. It is trying to drive the point that it is also an expression. It is made by combining two expressions a and a + b using =. Will make it clear.
thank you for your feedback.


Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests