sun推荐的Java编码规范.docVIP

  • 8
  • 0
  • 约1.78万字
  • 约 11页
  • 2017-08-17 发布于广东
  • 举报
Java编码规范 Java编码规范 1 1. 说明 3 1.1 为什么要有编码规范 3 1.2 版权声明 3 2. 文件名(File Names) 3 2.1 文件后缀(File Suffixes) 3 3.1 Java源文件(Java Source Files) 3 3.1.1 开头注释(Beginning Comments) 3 3.1.2 包和引入(Package and Import Statements) 3 3.1.3 类和接口声明(Class and Interface Declarations) 3 4.1 行长度 3 4.2 换行(Wrapping Lines) 3 // CONVENTION INDENTATION 4 Object andStillAnother) { 4 || !(condition5 condition6)) { 4 5. 注释(Comments) 4 5.1 实现注释的格式(Implementation Comment Formats) 4 5.1.1 块注释 4 5.1.2 单行注释(Single-Line Comments) 5 5.1.3 尾端注释(Trailing Comments) 5 5.1.4 行末注释(End-Of-Line Comments) 5 5.2 文档注释(Documentation Comments) 5 6

文档评论(0)

1亿VIP精品文档

相关文档