AP® Computer Science A glossary
Argument
Also called: actual parameter
Course: AP® Computer Science A Shows up in: Unit 1: Using Objects and Methods
A value passed into a method or constructor when it is called.
Appears in the course and exam description (CED): 1.9.B.31.13.C.3
Arguments must be compatible in number and order with the parameter types. An int argument can go to a double parameter, because it is widened.
System.out.println(Math.pow(2, 10)); // arguments 2 and 10
Output:
1024.0 Learn it properly, with a checkpoint 1.9 Method Signatures