Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Java syntax
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Keywords=== {{Main|List of Java keywords}} ====Keywords==== The following words are keywords and cannot be used as identifiers under any circumstances. {{div col|colwidth=15em}} * <code>_</code> * <code>abstract</code> * <code>assert</code> * <code>boolean</code> * <code>break</code> * <code>byte</code> * <code>case</code> * <code>catch</code> * <code>char</code> * <code>class</code> * <code>continue</code> * <code>default</code> * <code>do</code> * <code>double</code> * <code>else</code> * <code>enum</code> * <code>extends</code> * <code>final</code> * <code>finally</code> * <code>float</code> * <code>for</code> * <code>if</code> * <code>implements</code> * <code>import</code> * <code>instanceof</code> * <code>int</code> * <code>interface</code> * <code>long</code> * <code>native</code> * <code>new</code> * <code>package</code> * <code>private</code> * <code>protected</code> * <code>public</code> * <code>return</code> * <code>short</code> * <code>static</code> * <code>super</code> * <code>switch</code> * <code>synchronized</code> * <code>this</code> * <code>throw</code> * <code>throws</code> * <code>transient</code> * <code>try</code> * <code>void</code> * <code>volatile</code> * <code>while</code> {{div col end}} ====Reserved identifiers==== The following words are contextual keywords and are only restricted in certain contexts. {{div col|colwidth=15em}} * <code>exports</code> * <code>module</code> * <code>non-sealed</code> * <code>open</code> * <code>opens</code> * <code>permits</code> * <code>provides</code> * <code>record</code> * <code>requires</code> * <code>sealed</code> * <code>to</code> * <code>transitive</code> * <code>var</code> * <code>when</code> * <code>with</code> * <code>yield</code> {{div col end}} ====Reserved words for literal values==== The following words refer to literal values used by the language. {{div col|colwidth=15em}} * <code>true</code> * <code>false</code> * <code>null</code> {{div col end}} ====Unused==== The following words are reserved as keywords, but currently have no use or purpose. {{div col|colwidth=15em}} * <code>const</code> * <code>goto</code> * <code>strictfp</code> {{div col end}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)