Home > Back-end >  What is the sequence of Java?
What is the sequence of Java?

Time:02-03

Do not understand why to this result, please tell me step,
The final output is "a value is: 2, the value of b is: 1"

CodePudding user response:

A=b=+ operation from right to left, take + expression has a value of 1 first, then 1 is assigned to b, b=1, then a since 1, namely a reaches 2, then assigned to a, b or a=1
B=c + +, first take + 1, the value of the expression to get assigned to 2 c + b, then a since add 1 to 2
So the printing results a is 2, b is 1

CodePudding user response:

Such a + +, + + a,
As a=a + 1,

Although the code long some, easier to understand and won't go wrong,

So the actual programming,
Advice into understandable code,
Not easy to confuse the operator,

CodePudding user response:

Just see the building has a 19 years of looking for a job, just have to see the latest study, want to ask the building Lord, development work before looking for how, want to know about the, I also want to go after the training, and then turned to look for a job

CodePudding user response:

Should see your post, is a professional computer, turned IT, also in learning,
To train, can quickly learn Java theory and project experience,
And then look at other Internet experience, is into the company, do junior programmer,
And then learn the app through self-study, advanced technology such as heavy traffic,
  • Related