Precautions before use:1, due to the Java object-oriented programming characteristics, in naming should try to select the noun2. Hump nomenclature (Camel-case): When a variable name or function name is a unique identifying word that is composed of
Public publicly owned: This class, subclasses, and external objects can all be calledProtected protected: This class subclass, which can be executed, cannot be invoked by external objectsPrivate: Only this class can be executed, subclasses and
The purpose of defining the specification is to unify the code style of the project so that the program is readable.Name of package (all lowercase, defined by domain name)The Java package name is made up of lowercase words. However, due to the Java
Package (namespace)
Java package: it is a lowercase noun that can be separated by vertices. For example, java. AWT. event;
C # namespace: the first letter is capitalized. Generally, multiple words are combined into a class name. the first letter
Play on words
Time limit:1000 ms
Memory limit:10000 K
Total submissions:9710
Accepted:3352
DescriptionSome of the secret doors contain a very interesting
Today is xiaoxiaocoder's first Technical Review blog .. I have summarized the title based on my own code for more than a year. I want to use this title to express the topic of each article, in this way, both the summary of myself and the learning of
1. PackageAll letters are in lowercase. Hierarchy, separated by periods. Com. Sun. medialib com. Sun. jdi. Event
2. Classes and interfacesThe first letter of each word is capitalized. Using a noun or noun phrase, the timer bufferedwriter interface
Java Development prelude, java prelude
Java features
The main features of Java are:One compilation, run everywhere(Write Once, Run Anywhere .).
Principle: The. class bytecode file is generated after the Java source program is compiled. The. class
NET design Specifications: conventions, idioms and patterns ——— naming conventions Foreword: Recently in the ". NET design Specifications: conventions, idioms and patterns of the book, mainly speaking. NET design specifications, before this piece is
Android development code specification
1. Basic naming principlesIn object-oriented programming, naming of classes, objects, methods, and variables is very skillful. For example, case sensitivity, starting with different letters, and so on. However,
Java Naming conventionsThe purpose of defining the specification is to unify the code style of the project so that the program is readable.Name of package (all lowercase, defined by domain name)The Java package name is made up of lowercase words.
0. Character Set combination
A-z A-Z 0-9 and _ 63 in total
1.All notes start with a lowercase letter, and all nouns use a singular number. Therefore, the prefix must be lowercase.
Example: userIduser_id2. database object naming rules
Database Object
For Java (including in the JSP) code, the class names are all used Pascal notation, the first letter of each word capitalized, parameters, methods are used camel notation, the first letter is lowercase, can not abbreviated are not
The purpose of defining the specification is to unify the code style of the project so that the program is readable.Name of package (all lowercase, defined by domain name)The Java package name is made up of lowercase words. However, due to the Java
From "The Elements of Java style"-"Java programming style," a book worth reading, will let you save a lot of time in detail, cooperation between more enjoyable!The benefits are not much to say, but there are several principles as follows :1. Keep
Featured places in the past period"1" Java Web Technology Experience Summary"2" 15 top-level Java multithreading questions and answers, come and take a look."3" the interviewer most like to ask 10 Java face questions"4" from the zero-speaking Java,
Naming rules for databasesNaming conventions for databases, tables, fields, views, triggers, stored procedures, variable names, primary keys, foreign keys, indexes, and so on during database development.1) Data Base (database)Database name =
The purpose of defining the specification is to unify the code style of the project so that the program is readable.Name of package (all lowercase, defined by domain name)The Java package name is made up of lowercase words. However, due to the Java
The purpose of defining the specification is to unify the code style of the project so that the program is readable.Name of the project (all lowercase)All lowercase, such as CMS, Workdesk,jobserver, etc.Name of package (all lowercase, defined by
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.