Skip to content

Commit f629a7f

Browse files
committed
Reserved Words
1 parent a6350b9 commit f629a7f

File tree

1 file changed

+28
-24
lines changed

1 file changed

+28
-24
lines changed

Core JAVA.md

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,12 @@ Reserved Words (53)
156156
│ ├── Return Type (1)
157157
│ │ └── void
158158
│ │
159-
│ └── Unused Keywords (2)
160-
│ ├── goto
161-
│ └── const
159+
│ ├── Unused Keywords (2)
160+
│ │ ├── goto
161+
│ │ └── const
162+
│ │
163+
│ └── Enum Type (1)
164+
│ └── enum (added in Java 1.5)
162165
163166
└── Reserved Literals (3)
164167
├── true
@@ -185,29 +188,30 @@ Reserved Words (53)
185188

186189
---
187190

188-
### **Special Version Info**
189-
190-
* `strictfp` → Added in **Java 1.2**
191-
* `assert` → Added in **Java 1.4**
192-
* All others → From **Java 1.0**
193-
194-
---
195-
196191
</details>
197192

198-
| **Data Types (8)** | **Flow Control (11)** | **Modifiers (11)** | **Exception Handling (6)** | **Class Related (6)** | **Object Related (4)** | **Return Type** | **Unused (2)** |
199-
| ------------------ | --------------------- | ------------------- | -------------------------- | --------------------- | ---------------------- | --------------- | -------------- |
200-
| byte | if | public | try | class | new | void | goto |
201-
| short | else | private | catch | interface | instanceof | | const |
202-
| int | switch | protected | finally | extends | super | | |
203-
| long | case | static | throw | implements | this | | |
204-
| float | default | final | throws | package | | | |
205-
| double | while | abstract | assert (Java 1.4) | import | | | |
206-
| boolean | do | synchronized | | | | | |
207-
| char | for | native | | | | | |
208-
| | break | strictfp (Java 1.2) | | | | | |
209-
| | continue | transient | | | | | |
210-
| | return | volatile | | | | | |
193+
| Data Types (8) | Flow Control (11) | Modifiers (11) | Exception Handling (6) | Class-Related (6) | Object Keywords (4) | Return (1) | Unused (2) | Literals (3) | Added Later (1) |
194+
| -------------- |-------------------| -------------- | ---------------------- | ----------------- | ------------------- | ---------- | ---------- | ------------ | --------------- |
195+
| byte | if | public | try | class | new | void | goto | true | enum (1.5) |
196+
| short | else | private | catch | interface | instanceof | | const | false | |
197+
| int | switch | protected | finally | extends | super | | | null | |
198+
| long | case | static | throw | implements | this | | | | |
199+
| float | default | final | throws | package | | | | | |
200+
| double | while | abstract | assert (1.4) | import | | | | | |
201+
| boolean | do | synchronized | | | | | | | |
202+
| char | for | native | | | | | | | |
203+
| | break | strictfp (1.2) | | | | | | | |
204+
| | continue | transient | | | | | | | |
205+
| | return | volatile | | | | | | | |
206+
207+
🟢 Notes:
208+
209+
* Keywords with version info:
210+
211+
* assert → added in Java 1.4
212+
* strictfp → added in Java 1.2
213+
* enum → added in Java 1.5 (Java 5)
214+
* true, false, null → treated as literals (not technically keywords but reserved)
211215

212216
---
213217

0 commit comments

Comments
 (0)