Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
"printEmployeeInfo()" is a method defined within the Employee class that prints out information about an employee's name and salary using System.out.println statements.
Related terms
method: A method is a block of code that performs a specific task. Methods can take in parameters (like int raiseAmount) and return values.
void: "void" is the return type used for methods that do not return any value.
parameter: A parameter is a variable defined in a method's declaration. It represents an input value passed into the method when it's called.