登录
首页 » Java Develop » Java 程序编码规范 所有的程序开发手册都包含了各种规则。一些习惯自由程序人员可能对这些规则很不适应,但是在多个开发人员共同写作的情况下,这些规则是必需的...

Java 程序编码规范 所有的程序开发手册都包含了各种规则。一些习惯自由程序人员可能对这些规则很不适应,但是在多个开发人员共同写作的情况下,这些规则是必需的...

于 2022-07-17 发布 文件大小:6.74 MB
0 208
下载积分: 2 下载次数: 1

代码说明:

Java 程序编码规范 所有的程序开发手册都包含了各种规则。一些习惯自由程序人员可能对这些规则很不适应,但是在多个开发人员共同写作的情况下,这些规则是必需的。这不仅仅是为了开发效率来考虑,而且也是为了后期维护考虑。 内容: 命名惯例 、Java文件样式 、代码编写格式 、程序编写 、编程技巧 、Swing 、调试 、性能 、可移植性 1) 命名规范 定义这个规范的目的是让项目中所有的文档都看起来像一个人写的,增加可读性,减少项目组中因为换人而带来的损失。(这些规范并不是一定要绝对遵守,但是一定要让程序有良好的可读性) l Package名:Package名应该都是由一个小写单词组成。 l Class名:Class名必须由大写字母开头而其他字母都小写的单词组成 l Class 变量名:变量名用一个小写字母开头。后面的单词用大写字母开头。 l Static Final 变量名:Static Final 变量名应该都大写,并且指出完整含义。 l 参数名:参数的名字必须和变量的命名规范一致。 l 数组名:数组应该总是用下面的方式来命名: byte[] buffer 而不是:byte buffer[] l 方法的参数:使用有意义的参数命名,如果可能的话,使用和要赋值的字段一样的名字: -Java 程序编码规范 所有的程序开发手册都包含了各种规则。一些习惯自由程序人员可能对这些规则很不适应,但是在多个开发人员共同写作的情况下,这些规则是必需的。这不仅仅是为了开发效率来考虑,而且也是为了后期维护考虑。 内容: 命名惯例 、Java文件样式 、代码编写格式 、程序编写 、编程技巧 、Swing 、调试 、性能 、可移植性 1) 命名规范 定义这个规范的目的是让项目中所有的文档都看起来像一个人写的,增加可读性,减少项目组中因为换人而带来的损失。(这些规范并不是一定要绝对遵守,但是一定要让程序有良好的可读性) l Package名:Package名应该都是由一个小写单词组成。 l Class名:Class名必须由大写字母开头而其他字母都小写的单词组成 l Class 变量名:变量名用一个小写字母开头。后面的单词用大写字母开头。 l Static Final 变量名:Static Fina

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Java虚拟机规范。java虚拟机被设计为支持java的亲…
    Jvm 规范说明。The Java Virtual Machine was designed to support the Java programming language. Some concepts and vocabulary from the Java language are thus necessary to understand the virtual machine. This chapter gives enough of an overview of Java to support the discussion of the Java Virtual Machine to follow. Its material has been condensed from The Java Language Specification, by James Gosling, Bill Joy, and Guy Steele. For a complete discussion of the Java language, or for details and examples of the material in this chapter, refer to that book. Readers familiar with that book may wish to skip this chapter. Readers familiar with Java, but not with The Java Language Specification, should at least skim this chapter for the terminology it introduces.-JVM specification. The Java Virtual Machine was designed to support the Java programming language. Some concepts and vocabulary from the Java language are thus necessary to understand the virtual machine. This chapter gives enough of an overv
    2022-05-22 11:47:41下载
    积分:1
  • 2022-03-10 05:01:22下载
    积分:1
  • believe so many friends in the time of the navigation is very troublesome proble...
    相信不少朋友在做导航条的时候感到很麻烦吧,因为每做一页,连接就要修改一次,页面多起来的时候简直就是折磨了。这种情况在使用js 的情况下会有所改善,因为每个连接都是一样的,并且以后有栏目修改,增加减少的时候会倍感方便。但使用手工修改的时候未免会出更多的麻烦,js 错一个字整个 js 都不能运行。 Html2js 就是在这种情况下产生的,可以直接把 html代码转换成 js代码 ,那么这样一来,无论作什么修改,在 html 里面做好,然后转换就是了。-believe so many friends in the time of the navigation is very troublesome problem, as do every one, it is necessary to connect the revisions, the increase in pages when it is a torment. In such circumstances the use js circumstances will improve, because each link is the same, and after the columns are amended by increasing the reduction will more conveniently. But the use of manual changes of time it will be more trouble, a word wrong js whole js can run. Html2js is under such circumstances, can be directly converted into html code js code, then this one, no matter what changes they do in html and then converting the grindstone.
    2023-02-01 01:45:04下载
    积分:1
  • 3D Bluetooth are phone
    都是3D蓝牙联机对战手机游戏,都是很经典的游戏,很值得珍藏,把后缀的.rar去掉,再把文件放到支持蓝牙的手机上就ok了 -3D Bluetooth are phone-line war games, are very classic game, it is worthy of collection, the suffix. Rar removed, and then file into a Bluetooth-enabled mobile phone on the ok
    2022-01-25 22:55:41下载
    积分:1
  • Java编写applet的计算器应用
    Java编写applet的计算器应用-Java applet prepared the application calculator
    2022-05-13 04:43:46下载
    积分:1
  • java Traversal 8* 8 chessboard source code for the use of ergodic Hamiltonian ci...
    java遍历8*8棋盘源代码 运用哈密顿回路遍历,速度很快-java Traversal 8* 8 chessboard source code for the use of ergodic Hamiltonian circuit, fast
    2022-02-14 07:03:33下载
    积分:1
  • 人工智能的java代码的程序,包括神经网络、遗传…
    人工智能代码JAVA程序,包括神经网络,遗传算法-Artificial Intelligence JAVA code procedures, including neural networks, genetic algorithms
    2022-02-14 19:24:32下载
    积分:1
  • very good java original program study
    非常好的java原程序学习-very good java original program study
    2022-04-09 09:07:03下载
    积分:1
  • 国外开发的图形界面的功能强大的反编译工具,jd
    国外开发的图形界面的功能强大的反编译工具,jd-gui,支持jar文件整体编译,支持拖放-Foreign development of powerful graphical interface tool to decompile, jd-gui, supports the whole jar file compiled to support drag and drop
    2022-04-28 21:56:18下载
    积分:1
  • 好东西啊!你看看就知道了
    好东西啊!你看看就知道了-good things, ah! You look at know!
    2022-02-05 23:15:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载