Package (packages)
Naming conventions for package names: 1, lowercase 2, at least one level of directory 3, domain inversion writing
Package Baidu;
Package com.baidu.www;
Class (classes)----- Large Hump Method
Naming conventions for class names: capitalize all words in the first letter
Class Mobile
Class Testmobile
Interface (interface)
Naming conventions for interfaces: Capitalize all words in the first letter
Interface Animal;
Method (Methods)
Naming conventions for methods: first letter lowercase, initials of other words in uppercase
Testdemo ()
Variable (variable)----- Small Hump Method
Naming conventions for variables: member variables The first letter is lowercase, the first letter of other words is uppercase, local variables all use lowercase
Setnunber
Name
CONSTANT (constant)
Naming conventions for constants: Use uppercase all, preferably using underscores to split words
Max_size
Array (arrays)
Naming conventions for arrays: first letter lowercase, and first letter of other words capitalized
String[] name;
Java Learning: Coding specifications