- 1、本文档共11页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
java代码规范(The specifications of the Java code)
java代码规范(The specifications of the Java code)
Encoding standard is very important for developers, for several reasons:
1. a software life cycle, 80% of the cost that maintain
2. almost no software, in its whole life cycle, by the original developers to maintain
3. encoding can improve the readability of the specification of software, allows programmers to quickly and thoroughly understand the new code
4. if you will source as a product release, you need to make sure whether it is well packaged and clearly, any other products as you have been constructed
5. provide standards for the project team or individual from different code format.
6. increase readability.
Without Java for more than two years after work and I will turn into Java, so I sort out the encoding specification below, in order to comply with the work in the future.
A naming rules
1) package: naming should be a noun or a noun phrase, all lowercase, between words . separate; internal software module name followed by reverse the company / organization domain specific general use
The package name for example: package com.sun.java; package com.mycompany.db;
2): a noun or a noun phrase, each word capitalized; generally do not use abbreviations, unless the abbreviation is more general and easy to understand, such as the HTML; when the difference between interface and implementation class, the class can add Impl, for example: interface Container and class ContainerImpl; Exception the use of Exception as the end, for example: class named DataNotFoundException; abstract class Abstract start, for class names such as: AbstractBeanDefinition, AbstractBeanFactory; Test is best to use Test end class named. For example: ContainerTest
The class name for example: class Person; class SpringRain
3) interface: with naming rules
For example: interface interface named Runner;
4) methods: verb or verb phrase, the first letter lowercase, and second after the word capitalized;
For example: run (named); (displayInformation);
5) v
您可能关注的文档
- c语言程序设计期末考试复习题及答案(C language program design final exam review questions and answers).doc
- c语言程序设计课后习题答案(C Language Program Design after-school exercise answers).doc
- c语言程序设计试题(C language program design test).doc
- c语言程序设计课后题答案(C language programming exercises answer).doc
- c语言程序设计(清华郑莉 安颍莲)chap9(C programming language (Tsinghua Zheng Lian Ying Lian) chap9).doc
- c语言笔试冲刺复习资料 计算机二级 培训机构内部资料(C language written sprint review information on computer two level training institutions internal data).doc
- c语言程序设计课程设计-学生成绩管理系统(C programming language course design - student achievement management system).doc
- c语言程序设计2(C language program design 2).doc
- c语言第一次讲义(C language is the first lecture).doc
- c语言第一章答案(The first chapter answers the C language).doc
- java环境变量的设置方法和设置作用(The Java environment variable setting method and setting function).doc
- java程序员面试智力测试题大全(Java programmer interview intelligence test questions Daquan).doc
- java简单的xml解析(XML java simple analysis).doc
- java笔记09(java笔记09).doc
- javaks 课程设计(javaks 课程设计).doc
- it人才市场最看重的12项技能(The 12 skills of the most valued it talent market).doc
- java线程池实例演示(The java thread pool example).doc
- java简明教程第一章(Java simple tutorial Chapter).doc
- java编程学习步骤_it168文库(Java programming learning steps _it168 Library).doc
- java编写的模拟atm取款机程序(Machine simulation program written in Java from ATM).doc
最近下载
- 2025基层法律服务试题及答案.doc VIP
- 高水平电子商务专业群建设方案.docx VIP
- 《少儿小主持(口才)课件》.ppt VIP
- 2024年AIGC+教育行业报告.pdf VIP
- 甲子光年:2024年中国AIGC行业应用价值研究报告.pptx VIP
- 西门子SINAMICSS120Startdrive入门指南.docx VIP
- 部编优质课一等奖初中语文七年级下册《寻找最美对联》.ppt VIP
- 2020-2021学年贵州省遵义市七年级(下)期末数学试卷 (解析版).doc VIP
- 统编一年级《汉语拼音》教学PPT课件(完整完美版).pptx
- 2022年咖啡师资格证考试参考题库资料及答案.pdf VIP
文档评论(0)