A method is a collection of executable statements used to accomplish some task. Methods are the primary way to take action in a program.