List of Java keywords: Difference between revisions

Content deleted Content added
Line 199:
:Used in a module to declare that the module is using a service (i.e. it will consume a service provided by other modules).
 
;<code>[[Type inference|var]]</code>
:A special identifier that cannot be used as a type name (since Java 10).<ref>{{cite web |url=https://docs.oracle.com/javase/specs/jls/se11/html/jls-3.html#jls-3.9|title=Chapter 3. Lexical Structure|website=docs.oracle.com|access-date=2018-12-25}}</ref> Used to declare a variable without explicitly specifying the type, rather relying on the compiler to infer the type based on the initialiser.
 
;<code>when</code>