What this deck covers
This deck focuses on Method Signatures, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science a.
Study Method Signatures in AP Computer Science a with focused flashcards that help you recognize the idea, recall the key rule, and apply it in practice-style prompts.
0% Complete
What does a method signature determine for the compiler?
Tap card or press Space to flip
Method calling conventions. Enables proper method resolution and type checking.
How well did you know it?
Card 1 / 75
Space to flip · ← / → to move · once flipped, → Got it · ← Still learning
This deck focuses on Method Signatures, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science a.
Work through these flashcards in short sessions. Try to answer each prompt before flipping the card, then revisit any cards you miss until the explanation feels automatic.
Answer: Method calling conventions. Enables proper method resolution and type checking.
Answer: float. The data type returned when method execution completes.
Answer: Parameter list matching. Compiler matches arguments to parameter types and count.
Answer: Three parameters. Counts each comma-separated parameter in the list.
Answer: compute(int, double). Return type and access modifier are excluded from signature.
Answer: float. The data type returned when method execution completes.
Answer: Method name and parameter list. These uniquely identify how to call the method.
Answer: Different parameter lists. Same name but different parameters allows multiple versions.
Answer: double. The data type this method produces when called.
Answer: compute(int, double). Return type and access modifier are excluded from signature.
Answer: Return type. Only name and parameters define the signature for overloading.
Answer: boolean. Indicates the method returns a boolean value.
Answer: By their parameter lists. Return type alone cannot differentiate overloaded methods.
Answer: char. The data type the method will return when executed.
Answer: int, float. The types of data the method accepts as input.
Answer: Duplicate parameter names. Parameter names must be unique within the method scope.
Answer: Parameter names must be unique. Each parameter needs a distinct identifier within the method.
Answer: Parameter names must be unique. Each parameter needs a distinct identifier within the method.
Answer: Three parameters. Counts each comma-separated parameter in the list.
Answer: double. The data type this method produces when called.
Answer: isValid. The identifier that appears before the parameter list.
Answer: draw. The identifier used to invoke this method.
Answer: Two parameters. Counts the comma-separated parameters in parentheses.
Answer: Defines method's name and parameter types. Allows compiler to identify methods and validate calls.
Answer: Parameter list matching. Compiler matches arguments to parameter types and count.
Answer: The method name itself. The identifier used to call the method.
Answer: int. The data type of the single parameter variable.
Answer: Creates an overloaded method. New signature allows method overloading to occur.
Answer: Two parameters. Counts the comma-separated parameters in parentheses.
Answer: void log(String message). Adding parameters creates a different method signature.
Answer: Method name and parameter list. These uniquely identify how to call the method.
Answer: void. Indicates no value is returned by this method.
Answer: int. The data type of the single parameter variable.
Answer: double. The data type of the single parameter accepted.
Answer: Duplicate parameter names. Parameter names must be unique within the method scope.
Answer: Types and number of parameters. Determines what arguments can be passed to the method.
Answer: Methods must differ in parameter types or number. Enables multiple methods with same name but different usage.
Answer: String. The data type of the method's single parameter.
Answer: char. The data type the method will return when executed.
Answer: Different parameter lists. Same name but different parameters allows multiple versions.
Answer: String. The data type of the method's single parameter.
Answer: compute(float). Access modifiers and return type are not part of signature.
Answer: Returns a String. Method will return a String object when called.
Answer: Method returns no value. Indicates the method produces no output value.
Answer: boolean. Indicates the method returns a boolean value.
Answer: Method returns no value. Indicates the method produces no output value.
Answer: By their parameter lists. Return type alone cannot differentiate overloaded methods.
Answer: Duplicate parameter names. Parameters must have unique names within the method.
Answer: void execute(int). Different parameter list makes this a valid overload.
Answer: int, float. The types of data the method accepts as input.
Answer: void execute(int). Different parameter list makes this a valid overload.
Answer: Creates an overloaded method. New signature allows method overloading to occur.
Answer: Duplicate parameter names. Parameters must have unique names within the method.
Answer: void log(String message). Adding parameters creates a different method signature.
Answer: isValid. The identifier that appears before the parameter list.
Answer: Defines method's name and parameter types. Allows compiler to identify methods and validate calls.
Answer: Methods must differ in parameter types or number. Enables multiple methods with same name but different usage.
Answer: draw. The identifier used to invoke this method.
Answer: Return type. Return type differs but signature components are identical.
Answer: Return type. Only name and parameters define the signature for overloading.
Answer: void. Indicates no value is returned by this method.
Answer: Parameter list. Return type cannot distinguish overloaded methods in Java.
Answer: Returns a String. Method will return a String object when called.
Answer: int. The data type produced when method execution finishes.
Answer: Return type. Return type differs but signature components are identical.
Answer: int. The data type produced when method execution finishes.
Answer: double. The data type of the single parameter accepted.
Answer: Parameter list. Return type cannot distinguish overloaded methods in Java.
Answer: Types and number of parameters. Determines what arguments can be passed to the method.
Answer: Unique name and valid parameter list. Ensures method can be properly called and identified.
Answer: boolean. The data type returned when method executes successfully.
Answer: Method calling conventions. Enables proper method resolution and type checking.
Answer: boolean. The data type returned when method executes successfully.
Answer: Unique name and valid parameter list. Ensures method can be properly called and identified.
Answer: The method name itself. The identifier used to call the method.