FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update java-basic-questions-01.md by vverycool · Pull Request #2905 · Snailclimb/JavaGuide · GitHub

Update java-basic-questions-01.md - #2905

Merged
Snailclimb merged 1 commit into
Snailclimb:mainfrom
vverycool:patch-1
Aug 24, 2026
Merged

Update java-basic-questions-01.md#2905
Snailclimb merged 1 commit into
Snailclimb:mainfrom
vverycool:patch-1

Conversation

Copy link
Copy Markdown
Contributor

int a = 9; // a = 9
int b = a++; // b = 9,a = 10
int c = ++a; // a = 11,c = 11
int d = c--; // d = 11,c = 10
int e = --d; // d = 10,e = 10

int a = 9;   // a = 9
int b = a++; // b = 9,a = 10
int c = ++a; // a = 11,c = 11
int d = c--; // d = 11,c = 10
int e = --d; // d = 10,e = 10

Copy link
Copy Markdown

recommend change title to "fix: correct the wrong result in java-basic-questions-01.md"

Snailclimb merged commit 600387f into Snailclimb:main Aug 24, 2026

Copy link
Copy Markdown
Owner

感谢修正!验算无误:c = ++a 时 a 已为 10,前置自增后 a、c 均为 11,原文答案确实写错了。已合并 🎉

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL