Content deleted Content added
No edit summary Tags: Mobile edit Mobile app edit iOS app edit App section source |
CortexFiend (talk | contribs) Link suggestions feature: 2 links added. |
||
Line 23:
;<code>[[byte]]</code>
:The <code>byte</code> keyword is used to declare a field that can hold an 8-bit signed [[two's complement]] integer.<ref name="primitive"/>{{sfn|Flanagan|2005|p=22}} This keyword is also used to declare that a method returns a value of the primitive type <code>byte</code>.<ref name="return"/>{{sfn|Flanagan|2005|pp=66-67}}
;<code>[[switch statement|case]]</code>{{Anchor|case}}
Line 152:
;<code>[[volatile variable|volatile]]</code>
:Used in field declarations to guarantee visibility of changes to variables across threads. Every read of a volatile variable will be read from main memory, and not from the [[CPU cache]], and that every write to a volatile variable will be written to main memory, and not just to the CPU cache.<ref name="Java Volatile Keyword">{{cite web | title=Java Volatile Keyword | url=http://tutorials.jenkov.com/java-concurrency/volatile.html}}</ref> Methods, classes and interfaces thus cannot be declared ''volatile'', nor can local variables or parameters.
;<code>[[do while loop|while]]</code>{{Anchor|while}}
|