AP® Computer Science A glossary
Class method
Also called: static method
Course: AP® Computer Science A Shows up in: Unit 1: Using Objects and Methods
A method associated with the class, not with instances of the class. Its header includes the keyword static.
Appears in the course and exam description (CED): 1.10.A.11.10.A.2
Call a class method with the class name and the dot operator, such as Math.sqrt(25.0). Inside the defining class, the class name is optional.
System.out.println(Math.sqrt(25.0));
Output:
5.0 Learn it properly, with a checkpoint 1.10 Calling Class Methods