Sun官方发布的Java代码规范
来源:互联网 发布:淘宝网站目标及定位 编辑:程序博客网 时间:2024/05/14 06:36
[链接] http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html
CONTENTS | PREV | NEXT
Code Conventions for the JavaTM Programming Language
Revised April 20, 1999
1- 1.1 Why Have Code Conventions
- 1.2 Acknowledgments
2- 2.1 File Suffixes
- 2.2 Common File Names
3- 3.1 Java Source Files
- 3.1.1 Beginning Comments
- 3.1.2 Package and Import Statements
- 3.1.3 Class and Interface Declarations
- 3.1 Java Source Files
4- 4.1 Line Length
- 4.2 Wrapping Lines
5- 5.1 Implementation Comment Formats
- 5.1.1 Block Comments
- 5.1.2 Single-Line Comments
- 5.1.3 Trailing Comments
- 5.1.4 End-Of-Line Comments
- 5.2 Documentation Comments
- 5.1 Implementation Comment Formats
6- 6.1 Number Per Line
- 6.2 Initialization
- 6.3 Placement
- 6.4 Class and Interface Declarations
7- 7.1 Simple Statements
- 7.2 Compound Statements
- 7.3 return Statements
- 7.4 if, if-else, if else-if else Statements
- 7.5 for Statements
- 7.6 while Statements
- 7.7 do-while Statements
- 7.8 switch Statements
- 7.9 try-catch Statements
8- 8.1 Blank Lines
- 8.2 Blank Spaces
9 Naming Conventions
10- 10.1 Providing Access to Instance and Class Variables
- 10.2 Referring to Class Variables and Methods
- 10.3 Constants
- 10.4 Variable Assignments
- 10.5 Miscellaneous Practices
- 10.5.1 Parentheses
- 10.5.2 Returning Values
- 10.5.3 Expressions before `?' in the Conditional Operator
- 10.5.4 Special Comments
11- 11.1 Java Source File Example
CONTENTS | PREV | NEXT
Copyright © 1995-1999, Sun Microsystems, Inc. All Rights Reserved.
- Sun官方发布的Java代码规范
- Java代码注释规范(From Sun MicroSystem)
- 【SUN/Oracle官方文档翻译+纠错】JAVA语言编码规范
- Java官方(Oracle/Sun)发布的JDK和OpenJDK的关系
- 下载java版本的sun 官方链接
- Sun公司推荐的Java编码规范
- java的代码规范
- Java sun 官方资源地址
- sun公司制定JAVA规范
- Sun-Java语言编码规范
- Java 阿里官方代码规范标准手册终极版下载
- 官方Java编码规范
- WebGalileo Faces 2.0发布--一个基于sun的jsf规范的UI组件实现
- Sun 推荐的命名规范
- SUN公司发布最新的Sun Java Wireless Toolkit 2.5.2 for CLDC
- SUN公司发布最新的Sun Java Wireless Toolkit 2.5.2 for CLDC
- SUN公司发布最新的Sun Java Wireless Toolkit 2.5.2 for CLDC
- SUN公司发布最新的Sun Java Wireless Toolkit 2.5.2 for CLDC
- 应用程序的退出
- jfreechart使用经验总结(针对版本:jfreechart-1.0.0-pre2.zip)
- 非MFC工程使用MFC库时的问题及解决办法
- linux 驱动开发 Invalid module format 错误解决方法
- 小议static
- Sun官方发布的Java代码规范
- C++的static关键字
- OpenLDAP GUI Example
- DVD 播放器软件的一些感受
- 孙振耀撰文谈关于工作与生活
- BSTR _variant_t
- 宣化上人 解释 《隋朝步虚大师的预言》
- Exception Handling using Enterprise Library
- 男人必读