A method name that begins with an uppercase letter does not follow standard naming conventions, which decreases code readability. For example, Getbackground.

Begin the method name with a lowercase letter and use camel case: capitalize the first letter of each word within the method name. For example, getBackground.

  • J. Bloch, Effective Java (second edition), Item 56. Addison-Wesley, 2008.
  • Java Language Specification: 6.1. Declarations.
  • Java SE Documentation: 9 - Naming Conventions.