Content deleted Content added
ClueBot NG (talk | contribs) m Reverting possible vandalism by 197.138.0.200 to version by Jarble. Report False Positive? Thanks, ClueBot NG. (3874883) (Bot) |
Ira Leviton (talk | contribs) m Replaced outdated html codes with wikicodes. |
||
Line 101:
|-
![[Binary numeral system|binary]] (introduced in Java SE 7)
|
|-
![[octal]]
|
|-
![[hexadecimal]]
|
|-
![[decimal]]
|
|-
!colspan="2"|[[Floating-point]] values
|-
!rowspan="2" | float
|
|-
|
|-
!rowspan="2" | double
|
|-
|
|-
!colspan="2"|Character literals
|-
!char
|
|-
!colspan="2"|Boolean literals
|-
!boolean
|
|-
!colspan="2"|null literal
|-
!null reference
|
|-
!colspan="2"|String literals
|-
!String
|
|-
!colspan="2"|Characters escapes in strings
|-
![[Unicode]] character
|
|-
![[Octal]] escape
|
|-
![[Line feed]]
|{{mono|\n}}
|-
![[Carriage return]]
|{{mono|\r}}
|-
![[Form feed]]
|{{mono|\f}}
|-
![[Backslash]]
|{{mono|\\}}
|-
![[Single quote]]
|{{mono|\'}}
|-
![[Double quote]]
|{{mono|\"}}
|-
![[Tab character|Tab]]
|{{mono|\t}}
|-
![[Backspace]]
|{{mono|\b}}
|}
Integer literals are of <code>int</code> type by default unless <code>long</code> type is specified by appending <code>L</code> or <code>l</code> suffix to the literal, e.g. <code>367L</code>. Since Java SE 7, it is possible to include underscores between the digits of a number to increase readability; for example, a number
===Variables===
Line 206:
===Code blocks===
The separators
Inside of method bodies, braces may be used to create new scopes, as follows:
Line 278:
</syntaxhighlight>
Classes with the <code>public</code> modifier must be placed in the files with the same name and
===Import declaration===
|