List of Java keywords: Difference between revisions

Content deleted Content added
No edit summary
Line 35:
 
;<code>[[class (computer science)#Java|class]]</code>
:A type that defines the implementation of a particular kind of object. A class definition defines [[Object (computer science)|instance]] and class [[field (computer science)|fields]], [[method (computer science)|methods]], and [[inner class]]es as well as specifying the [[interface (computer science)|interfaces]] the class implements and the immediate [[superclass (computer science)|superclass]] of the class. If the superclass is not explicitly specified, the superclass is implicitly {{Javadoc:SE|java/lang|Object}}. The class keyword can also be used in the form <code>Class'''.class'''</code> to get a <code>Class</code> object without needing an instance of that class. For example, '''<syntaxhighlight lang="Java" inline>String.class'''</syntaxhighlight> can be used instead of doing '''<syntaxhighlight lang="Java" inline>new String().getClass()'''</syntaxhighlight>.
 
;<code>[[continue (Java)|continue]]</code>