-
Java 程序编码规范
所有的程序开发手册都包含了各种规则。一些习惯自由程序人员可能对这些规则很不适应,但是在多个开发人员共同写作的情况下,这些规则是必需的...
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
- 2022-07-17 01:03:09下载
- 积分:1
-
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
-
creates on the many examples BEANS
j2ee关于BEANS的多个例子-creates on the many examples BEANS
- 2023-09-03 10:55:04下载
- 积分:1
-
java记事本源码,主要是现java流技术
java记事本源码,主要是现java流技术-Notepad java source code, mainly java streaming technology is now
- 2022-12-25 20:35:04下载
- 积分:1
-
基于Karhunen
基于Karhunen-Loeve的人脸识别的matlab源程序
-on Karhunen- Loeve Face Recognition of Matlab source
- 2022-02-13 06:15:09下载
- 积分:1
-
基础知识,为想了解JAVA的朋友提供最基础,最好的中文教程,当然也有高级的
基础知识,为想了解JAVA的朋友提供最基础,最好的中文教程,当然也有高级的-Basic knowledge, as a friend would like to know JAVA to provide the most basic, the best Chinese Course and, of course, have higher
- 2022-06-13 22:17:46下载
- 积分:1
-
该程序是实现JAVA中用applet实现图片的加载和视频,音频的加载!...
该程序是实现JAVA中用applet实现图片的加载和视频,音频的加载!-The program is to achieve the realization of JAVA using applet to load images and video, audio add-ons!
- 2022-10-23 12:50:03下载
- 积分:1
-
production of a document to help Lee Cheng 10
制作帮助文件的一个利程10-2-production of a document to help Lee Cheng 10-2
- 2022-06-11 23:57:20下载
- 积分:1
-
Java编写的简单网络聊天程序,具有服务器端和客户端,只是开发的第一个版本,还存在很多bug...
Java编写的简单网络聊天程序,具有服务器端和客户端,只是开发的第一个版本,还存在很多bug-Java prepared simple network chat program with a server-side and client, but to develop the first version, there is a lot of bug
- 2023-07-25 04:00:03下载
- 积分:1
-
Dijkstra algorithm in the Java Implementation
Dijkstra算法在JAVA中的实现方法-Dijkstra algorithm in the Java Implementation
- 2022-01-26 01:39:46下载
- 积分:1