Naming conventions

Naming conventions

simple explanation of Pascal and camel case conventions in Java:

Pascal Case

  • Definition: Each word starts with a capital letter.

  • Example: MyVariableName

Camel Case

  • Definition: First word starts with a small letter, and each following word starts with a capital letter.

  • Example: myVariableName

In summary:

  • Pascal Case: MyClassName

  • Camel Case: myMethodName