当前位置:文档之家› Jtest规范

Jtest规范

Jtest规范
Jtest规范

JA V A 编码标准规范

一、JA V A编码标准规则

1. JavaBeans [BEAN]

2. 编码约定/ 惯例Coding Conventions [CODSTA]

3. 契约设计/ Design by Contract [DBC]

4. Enterprise JavaBeans [EJB]

5. 异常/ Exceptions [EXCEPT]

6. 格式化/ Formatting [FORMA T]

7. 碎片回收集/ Garbage Collection [GC]

8. 全面静态分析/ Global Static Analysis [GLOBAL]

9. 初始化/ Initialization [INIT]

10. 国际化/ Internationalization [INTER]

11. JA V A2 微型平台/ Java 2 Micro Edition [J2ME]

12. JA V A文档注释/ Javadoc Comments [JA VADOC]

13. JA V A数据库连接/ Java Database Connectivity [JDBC]

14. JavaServer Pages [JSP]

15. JavaServer Page Metrics [JMETRICS]

16. Junit测试用例/ JUnit Test Case [JUNIT]

17. 类结构/ Class Metrics [METRICS]

18. 不同特性/ Miscellaneous [MISC]

19. 命名约定/惯例Naming Conventions [NAMING]

20. 面向对象编程/ Object Oriented Programming [OOP]

21. 最优化/ Optimization [OPT]

22. 可能存在的BUG/ Possible Bugs [PB]

23. 简便/ Portability [PORT]

24. 安全/ Security [SECURITY]

25. 序列化/ Serialization [SERIAL]

26. Servlets [SERVLET]

27. Struts 框架/ Struts Framework [STRUTS]

28. 线程与同步/ Threads & Synchronization [TRS]

29. 从未使用的代码/ Unused Code [UC]

30. 安全(必要的许可)/ Security (License Required) [SLR]

31. 安全策略规范Security/ Policy Rules (License Required) [SPR]

32. Web安全(必要的许可)/ Web Security (License Required) [WSLR]

二、内置与自定义的标准组

1. 内置的Jtest配置/ Built-in Jtest Configurations

2. 测试驱动开发(TDD)/ Test Driven Development (TDD)

3. Parasoft的自动错误预防组/ Parasoft's AEP group

4. Scope Examples group

5. 其他配置/ Other configurations

6. 自定义编码标准分析:概要/ Customizing coding standard analysis: overview

一、JA V A编码标准规则

1. JavaBeans [BEAN]

1-1.在JavaBean类中为listener方法名使用适当的签名/Use appropriate signatures for listener method names in JavaBean classes [BEAN.BLNC-1]

1-2.确保JavaBean类实现了'java.io.Serializable'/Ensure that JavaBean classes implement 'java.io.Serializable' [BEAN.SERIALIZABLE-2]

1-3.在JavaBean类中覆写'Object.equals()' /Override 'Object.equals()' in JavaBean classes [BEAN.EQUALS-4] 1-4.在JavaBean类中不使用JDBC代码/Do not use JDBC code in JavaBean classes [BEAN.JDBC-4]

1-5.在私有字段中定义get和set方法/Define get and set methods for each private field [BEAN.NFM-4]

2. Coding Conventions [CODSTA]

2-1.避免在其他表达式中嵌套赋值或内部赋值/ Avoid nested assignments or assignments embedded in other expressions [CODSTA.NEA-1]

2-2.适当性的定制编辑单元成分/ Order compilation unit elements appropriately [CODSTA.ORCU-1]

2-3.在一个语句中不要断言不同类型中的多个变量/ Do not declare multiple variables of different types in one statement [CODSTA.VDT-1]

2-4.为Cloneable类声明'clone() throws CloneNotSupportedException'/ Declare 'clone() throws CloneNotSupportedException' for Cloneable class [CODSTA.CLONE-2]

2-5.确保没有终结Cloneable类中的'clone()'方法声明了'CloneNotSupportedException'/ Ensure 'clone()' method of non-final Cloneable class declared to throw 'CloneNotSupportedException' [CODSTA.CLONET-2]

2-6.避免在长整型常量后有小字母的"l"或字母的"1"/ Avoid having a lower-case "l" or the number "1" at the end of a "long" integer constant [CODSTA.LONG-2]

2-7.避免字面意义的常量/ Avoid literal constants [https://www.doczj.com/doc/d317416904.html,N-2]

2-8.不要使用"break" 和(或则)"continue"与符号/ Do not use "break" and/or "continue" with labels [CODSTA.ABCL-3]

2-9.在"if"语句中不要使用复杂的条件表达式/ Do not use complicated conditional expressions in "if" statements [CODSTA.ACCS-3]

2-10.在一个catch块中不要使用instanceof去检查异常类型/ Do not use instanceof in a catch block to check the exception type [CODSTA.AIOC-3]

2-11.不要覆写父类中的非抽象方法/ Do not override non "abstract" methods of a parent class with "abstract" methods [CODSTA.AMMO-3]

2-12.用较少的特定类型实现松散耦合/ Use less specific types to accomplish loose coupling [CODSTA.AUVT-3]

2-13."final"以大写字符名声明字段/ Declare fields with uppercase character names as "final" [CODSTA.CFNF-3]

2-14.在类中使用链构造器实现多个构造器/ Use chain constructors in classes with multiple constructors [CODSTA.CHAIN-3]

2-15.在嵌套的表达式中避免使用增量或减量的算法/ Avoid using increment or decrement operators in nested expressions [CODSTA.CID-3]

2-16.使用'clone()'方法仅仅是实现'Cloneable'接口/ Use the 'clone()' method only to implement 'Cloneable' interface [CODSTA.CLONE2-3]

2-17.强制或避免使用条件算法/ Enforce or avoid usage of conditional operators [CODSTA.CX-3]

2-18.只要可能就定义一个非自变量构造器/ Define a no argument constructor whenever possible [CODSTA.DCTOR-3]

2-19.适当的定制类元素/ Order class elements appropriately [CODSTA.FO-3]

2-20.不要在一个语句中声明多个变量Do not declare multiple variables in one statement [CODSTA.MVOS-3] 2-21.在构造器执行期间不要调用方法那样可能会引起意料不到的NullPointerExceptions/ Do not call methods that might cause unexpected NullPointerExceptions during constructor execution [CODSTA.NCNFC-3]

2-22.避免"throws"异常;而用'Exception'的子几集/ Avoid "throws" Exceptions; use subclasses of 'Exception' [CODSTA.NTX-3]

2-23.以名字来组织方法/ Organize methods by name [CODSTA.OGM-3]

2-24.当你覆写'Object.hashCode()'时也覆写'Object.equals()'/ Override 'Object.equals()' when you override 'Object.hashCode()' [CODSTA.OVERRIDE2-3]

2-25.确保一个类中仅有的"private"构造器声明为"final"/ Ensure that a class which has only "private" constructors is declared as "final" [CODSTA.PCF-3]

2-26.避免"switch"语句有多个"case"语句/ Avoid "switch" statements with many "case" statements [CODSTA.SMC-3]

2-27.每个文件中至多有一个类型/ Do not have more than one type in each file [CODSTA.AMOC-4]

2-28.不要使用符号语句/ Do not use label statements [CODSTA.AULS-4]

2-29.避免嵌套的块/ Avoid nested blocks [CODSTA.BLOCK-4]

2-30.在比较中适当的一边放置常量/ Place constants on the appropriate side of comparisons [CODSTA.CS-4]

2-31.所有形式参数声明为"final"/ Declare all formal parameters as "final" [CODSTA.FPF-4]

2-32.避免或强制在import语句中使用'*'/ Avoid or enforce usage of '*' form of import statements [CODSTA.IMPTD-4]

2-33.在一个"abstract"类中不要从构造器中调用一个"abstract"方法/ Do not call an "abstract" method from a constructor in an "abstract" class [CODSTA.NCAC-4]

2-34.不要使用'Exception', 'RuntimeException', 或者'Throwable'在"catch"语句中/Do not use 'Exception', 'RuntimeException', or 'Throwable' in "catch" statement [CODSTA.NCE-4]

2-35.避免非静态初始化/ Avoid non-static initializers [CODSTA.NSI-4]

2-36.避免多个负载的方法有同样数字的参数/ Avoid multiple overloaded methods with the same number of parameters [CODSTA.OVERLOAD-4]

2-37.当你覆写'Object.equals()'时也覆写'Object.hashCode()'/ Override 'Object.hashCode()' when you override 'Object.equals()' [CODSTA.OVERRIDE-4]

2-38.在最后放置'main()'方法/ Place the 'main() 'method last [CODSTA.PML-4]

2-39.避免或强制使用"this"和"super"表达式/ Avoid or enforce the use of "this" and "super" expressions [CODSTA.UATS-4]

2-40.避免所有的类型有一个非默认的包名/ Ensure all types have a non default package name [CODSTA.UNDPN-4]

2-41.在if-else中避免使用负逻辑/ Avoid using negative logic in if-else statement [CODSTA.ANL-5]

2-42.在一个"interface"应定义常量/ Define constants in an "interface" [CODSTA.DCI-5]

2-43.在单一的方法中不要使用过多的'!'否定算法/ Do not use too many negation operators '!' in a single method [CODSTA.DUN-5]

2-44.不要使用一个"interface"去定义常量/ Do not use an "interface" to define constants [CODSTA.ISACF-5]

2-45.在"public"和"protected"方法间放置'finalize()'方法/ Place 'finalize()' methods between "public" and "protected" methods [CODSTA.ORFIM-5]

2-46.以整齐的字母序列呈现"import"语句/ Present "import" statements in alphabetical order [CODSTA.ORIMP-5]

2-47.覆写'toString ()'/ Override 'toString ()' [CODSTA.OTOSM-5]

3. Design by Contract [DBC]

3-1.在契约设计中使用正确的约定语法/ Use correct syntax in the DbC contracts [DBC.SYNTAX-1]

3-2.为所有"public"方法提供一个'@post'约定/ Provide an '@post' contract for all "public" methods [DBC.PUBMPOST-2]

3-3.为所有"public" 类提供一个'@invariant'约定/ Provide an '@invariant' contract for all "public" classes [DBC.PUBC-2]

3-4.为所有"public"方法提供一个'@pre'约定/ Provide an '@pre' contract for all "public" methods [DBC.PUBMPRE-2]

3-5.为所有"protected"类提供一个'@invariant'约定/Provide an '@invariant' contract for all "protected" classes [DBC.PROC-3]

3-6.为所有"protected"方法提供一个'@post'约定/ Provide an '@post' contract for all "protected" methods [DBC.PROMPOST-3]

3-7.为所有"protected"方法提供一个'@pre'约定/ Provide an '@pre' contract for all "protected" methods [DBC.PROMPRE-3]

3-8.为所有私有类包提供一个'@invariant'约定/ Provide an '@invariant' contract for all package-private classes [DBC.PKGC-4]

3-9.为所有私有方法包提供一个'@post'约定/ Provide an '@post' contract for all package-private methods [DBC.PKGMPOST-4]

3-10.为所有私有方法提供一个'@pre'约定/ Provide an '@pre' contract for all package-private methods [DBC.PKGMPRE-4]

3-11.为所有"private"类提供一个'@pre'约定/ Provide an '@invariant' contract for all "private" classes [DBC.PRIC-5]

3-12.为所有"private"方法提供一个'@post'约定/ Provide an '@post' contract for all "private" methods [DBC.PRIMPOST-5]

3-13.为所有"private"方法提供一个'@pre'约定Provide an '@pre' contract for all "private" methods [DBC.PRIMPRE-5]

4. Enterprise JavaBeans [EJB]

4-1.声明bean类为"public"/ Declare bean classes "public" [EJB.CDP-1]

4-2.不要以"abstract"声明bean类/ Do not declare bean classes as "abstract" [https://www.doczj.com/doc/d317416904.html,DA-1]

4-3.不要以"final"声明bean类/ Do not declare bean classes as "final" [https://www.doczj.com/doc/d317416904.html,DF-1]

4-4.声明'ejbCreate()'方法为"public",但即不能为"static"也不能为"final"/ Declare 'ejbCreate()' methods "public", but neither "static" nor "final" [EJB.CRTE-1]

4-5.声明finder方法为"public",不过即不能为"static"也不能为"final"/ Declare finder methods "public" and neither "final" nor "static" [EJB.FNDM-1]

4-6.在一个bean类中实现一个或多个'ejbCreate ()'方法/ Implement one or more 'ejbCreate ()' methods in bean classes [EJB.IECM-1]

4-7.在一个实体bean类中实现一个或多个'ejbPostCreate()'方法/ Implement one or more 'ejbPostCreate()' methods in EntityBean classes [EJB.IEPM-1]

4-8.在所有消息驱动bean类中实现'ejbCreate()'方法/ Implement the 'ejbCreate()' method for all Message-driven bean classes [EJB.MDBC-1]

4-9.在实体bean类中为每个'ejbCreate'方法定义一个匹配的'ejbPostCreate()'方法/ Define a matching 'ejbPostCreate()' method for each 'ejbCreate' method in entity bean classes [EJB.MEC-1]

4-10.在bean类中不要定义'finalize ()'方法/ Do not define 'finalize ()' method in bean classes [EJB.MNDF-1]

4-11.为远程interface和远程home interface的方法抛出'java.rmi.RemoteException'/ Throw 'java.rmi.RemoteException' in the methods of remote interface and remote home interface [EJB.MRE-1]

4-12.避免在消息驱动Bean的'ejbCreate()'方法有自变量/ Avoid arguments in MessageDrivenBeans' 'ejbCreate()' method [EJB.NAC-1]

4-13.传入无参数则声明一个"public"构造器/ Declare a "public" constructor that takes no parameters [EJB.NFDC-1]

4-14.声明'ejbPostCreate()'为"public",不过即不能为"static"也不能为"final"/ Declare 'ejbPostCreate()' "public" and neither "static" nor "final" [EJB.PCRTE-1]

4-15.在一个bean的局部interface和局部home interface中不要抛出'java.rmi.RemoteException'/ Do not throw 'java.rmi.RemoteException' in a bean's local interface and local home interface [EJB.RILH-1]

4-16.构造finder方法返回类型为primary key或一个primary key集合/ Make finder methods' return type the primary key or a collection of primary keys [EJB.RT-1]

4-17.为SessionBeans或MessageDrivenBeans的'ejbCreate()'方法构造返回类型"void"/ Make the return type "void" for SessionBeans or MessageDrivenBeans' 'ejbCreate()' methods [EJB.RTC-1]

4-18.为'ejbPostCreate()'方法构造返回类型"void"/ Make the return type "void" for the 'ejbPostCreate()' method [EJB.RTP-1]

4-19.在Home interface中为EJB remote, home interfaces和bean类和确保包括所有business方法和'create'与'finder'方法的EJB bean遵循格式化名/ Follow the name format for EJB remote, home interfaces, and bean classes and ensure EJB bean contains all the business methods and 'create' and 'finder' methods in the Home interface [EJB.STD-1]

4-20.远程home或局部home interfaces在创建方法时抛出'javax.ejb.CreateException'/ Throw 'javax.ejb.CreateException' in create methods of remote home or local home interfaces [EJB.TCE-1]

4-21.远程home或局部home interfaces在finder方法时抛出'javax.ejb.FinderException'/ Throw 'javax.ejb.FinderException' in finder methods of remote home or local home interfaces [EJB.TFE-1]

4-22.自变量避免通过"this"引用/ Avoid passing the "this" reference as an argument [EJB.THISARG-1]

4-23.不要返回"this"/ Do not return "this" [EJB.THISRET-1]

4-24.不要访问或修改安全配置对象/ Do not access or modify security configuration objects [EJB.AMSC-2]

4-25.在'ejbLoad()'中不要调用finder方法/ Do not call finder methods in the 'ejbLoad()' [EJB.EJBLOAD-2]

4-26.在一个Bean中避免加载原生库/ Avoid loading native libraries in a Bean class [EJB.LNL-2]

4-27.在EJB组件"final"时声明所有"static"字段/ Declare all "static" fields in the EJB component "final" [EJB.NFS-2]

4-28.重新利用EJB homes/ Reuse EJB homes [EJB.RUH-2]

4-29.在任何地方避免开始,停止或管理线程/ Avoid starting, stopping, or managing threads in any way [EJB.THREAD-2]

4-30.使用Session外观去控制访问实体beans/ Use a Session Facade to manage access to entity beans [https://www.doczj.com/doc/d317416904.html,F-2]

4-31.在EJB类中不要使用Servlet代码/ Do not use Servlet code in EJB classes [EJB.ABCS-3]

4-32.在java swing或ervlet类中不要使用EJB代码/ Do not use EJB code in java swing or servlet classes [EJB.ADCB-3]

4-33.避免过多的inter-entity bean通讯/ Avoid excessive inter-entity bean communication [EJB.AIEBC-3]

4-34.在EJB类内不要使用JDBC代码/ Do not use JDBC code inside of EJB classes [EJB.AJDBC-3]

4-35.在session beans和entity beans间避免一对一的映射/ Avoid one-to-one mapping between session beans and entity beans [EJB.AOTO-3]

4-36.可再利用的高速缓存JNDI资源将减少使用高代价的运算/ Cache reusable JNDI resources to minimize the use of expensive operations [EJB.UCIC-3]

4-37.fine-grained对象不要使用Entity Beans/ Do not use Entity Beans as fine-grained objects [EJB.ABFG-4]

4-38.使用有价值对象减少对服务器的调用/ Use value Objects to reduce the granularity of calls to the server [EJB.UVO-4]

5. Exceptions [EXCEPT]

5-1.所有字段中用户定义的'Exception'声明为"final"/ Declare all fields of user-defined 'Exception' as "final" [EXCEPT.IMMEX-3]

5-2.不要捕获'https://www.doczj.com/doc/d317416904.html,ng.Error'对象/ Do not catch the 'https://www.doczj.com/doc/d317416904.html,ng.Error' object [EXCEPT.NCERR-3]

5-3.不要捕获'NullPointerException'/ Do not catch 'NullPointerException' [EXCEPT.NCNPE-3]

5-4.不要抛出'https://www.doczj.com/doc/d317416904.html,ng.Error'对象/ Do not throw the 'https://www.doczj.com/doc/d317416904.html,ng.Error' object [EXCEPT.NTERR-3]

5-5.在控制流的语句中不要滥用异常/ Do not abuse exceptions as flow control statements [EXCEPT.AEFC-4] 5-6.不要抛出'NullPointerException'/ Do not throw 'NullPointerException' [EXCEPT.NTNPE-5]

6. Formatting [FORMA T]

6-1.每行书写一个语句/ Write one statement per line [FORMAT.OSPL-1]

6-2.强制在主要的模块间执行数个空行/ Enforce number of blank line(s) between major sections [FORMA T.U2BL-1]

6-3.强制缩进执行数个空格/ Enforce number of space(s) for indentation [FORMAT.IND-2]

6-4.限制每行的最大长度/ Limit the maximum length of a line [FORMAT.LL-2]

6-5.每个源文件提供一个正确的文件标题/ Provide a correct file header comment for each source file [FORMA T.MCH-2]

6-6.条件表达式采用首选格式化/ Use the preferred formatting for conditional expressions [FORMA T.TE-2]

6-7.使用'()'分隔复杂的表达式/ Use '()' to separate complex expressions [FORMAT.APAREN-3]

6-8.在独有的行放置大括号/ Place a closing brace on its own line [FORMA T.CBRACE-3]

6-9.类型分配后放置一个单独的空格符号或否/ Place a single space character or no space character after type casting [FORMA T.CMS-3]

6-10.用空格代替'Tabs'/ Use spaces instead of 'Tabs' [FORMAT.DUT-3]

6-11.以'[]'括号声明arrays在队列类型后和变量名前/ Declare arrays with '[]' brackets after the array type and before the variable name(s) [FORMAT.IAD-3]

6-12.在一个方法名和打开的"("圆括号间放置一个单独的空格字符或否/ Place a single space character or no space character between a method name and the opening "(" parenthesis [FORMAT.MSP-3]

6-13.不要在'{'打开括号相同的行放置语句/ Do not place statements on the same line as the '{' opening brace [FORMA T.NSAB-3]

6-14.强制在所有逗号后执行数个空格字符/ Enforce number of space character(s) after every comma [FORMA T.SAC-3]

6-15.强制在赋值算法每一边执行数个空格字符/ Enforce number of space character(s) on each side of an assignment operator [FORMAT.SAOP-3]

6-16.强制在条件运算的打开圆括号"("后执行数个空格字符/ Enforce number of space character(s) after the opening parenthesis "(" of a conditional statement [FORMA T.SAP-3]

6-17.强制在所有分号后执行数个空格字符/ Enforce number of space character(s) after every semicolon [FORMA T.SAS-3]

6-18.强制在一个前缀一元操作和操他的作数间执行数个空格字符/ Enforce number of space character(s)

between a prefixed unary operator and its operand [FORMA T.SAUOP-3]

6-19.强制在位运算每一边执行数个空格字符/ Enforce number of space character(s) on each side of a bitwise operator [FORMA T.SBOP-3]

6-20.强制在一个后缀一元操作和操他的作数间执行数个空格字符/Enforce number of space character(s) between a postfixed unary operator and its operand [FORMAT.SBUOP-3]

6-21.强制在条件算法"?"前和后执行数个空格字符/ Enforce number of space character(s) before and after the "?" conditional operator [FORMA T.SCOP-3]

6-22.强制在逻辑运算每一边执行数个空格字符/ Enforce number of space character(s) on each side of a logical operator [FORMA T.SLOP-3]

6-23.强制在关系运算每一边执行数个空格字符/ Enforce number of space character(s) on each side of a relational operator [FORMA T.SROP-3]

6-24.避免不必要的圆括号/ Avoid unnecessary parentheses [FORMAT.UP-3]

6-25.强制在类型声明前执行数个空行/ Enforce number of blank line(s) before type declarations [FORMA T.BLCD-4]

6-26.强制执行数个空行去分隔不同的"imports"包/ Enforce number of blank line(s) to separate "imports" from different packages [FORMAT.BLSIM-4]

6-27.强制执行'{'大括号的位置/ Enforce the position of '{' brace [FORMAT.FCB-4]

6-28.放置跟第一个类型有相同文件名的类型/ Place the type that has the same name as the file as the first type [FORMA T.FCN-4]

6-29.强制定制注释和修改人/ Enforce the order of annotations and modifiers [FORMA T.MO-4]

6-30.确信所有文件终止于换行字符/ Make sure all files are terminated with a newline character [FORMA T.TNL-4]

6-31.不要在行末放置空个空格区字段/ Do not place empty whitespace at the end of a line [FORMAT.ATS-5]

6-32.避免使用拖长的注释/ Avoid using trailing comments [FORMAT.TC-5]

6-33.避免或强制在array初始化时使用拖长的逗号/ Avoid or enforce the use of trailing commas in array initializers [FORMA T.TCOMMA-5]

7. Garbage Collection [GC]

7-1.从'finalize ()'来调用'super.finalize ()'/ Call 'super.finalize ()' from 'finalize ()' [GC.FCF-1]

7-2.不要使用'finalize ()'方法去注销监听?/ Do not use 'finalize ()' methods to unregister listeners [GC.FM-1]

7-3.不要直接调用'finalize ()'/ Do not call 'finalize ()' explicitly [GC.NCF-1]

7-4.当转换原始类型为String时不要使用不必要的临时变量/ Do not use unnecessary temporaries when converting primitive types to String [GC.AUTP-2]

7-5.在'finalize()'方法的"finally"模块中调用'super.finalize()'/ Call 'super.finalize()' in the "finally" block of 'finalize()' methods [GC.IFF-2]

7-6.调用'reset ()'时在ObjectOutputStreams预防潜在的内存泄漏/ Prevent potential memory leaks in ObjectOutputStreams by calling 'reset ()' [GC.OSTM-2]

7-7.避免使用'long[]'来替代'Date[]'/ Avoid using 'Date[]', use 'long[]' instead [GC.DUD-3]

7-8.不要直接调用'System.gc()'或'Runtime.gc()'/ Do not explicitly call 'System.gc()' or 'Runtime.gc()' [GC.GC-3] 7-9.避免使用"static"的collections 或maps;他们能超过范围的增长/ Avoid "static" collections or maps; they can grow without bounds [GC.STV-3]

7-10.重新调用'getClipBounds()'/ Reuse calls to 'getClipBounds()' [GC.GCB-5]

8. Global Static Analysis [GLOBAL]

8-1.尽可能声明package-private类型难以访问/ Declare package-private types as inaccessible as possible [GLOBAL.DPAC-1]

8-2.尽可能声明package-private域难以访问/ Declare package-private fields as inaccessible as possible [GLOBAL.DPAF-1]

8-3.尽可能声明package-private方法难以访问/Declare package-private methods as inaccessible as possible [GLOBAL.DPAM-1]

8-4.避免全局使用package-private类型/ Avoid globally unused package-private types [GLOBAL.UPAC-1]

8-5.避免全局使用package-private域/ Avoid globally unused package-private fields [GLOBAL.UPAF-1]

8-6.避免全局使用package-private方法/注释成分类型/ Avoid globally unused package-private methods/annotation member types [GLOBAL.UPAM-1]

8-7.避免使用"throws"语句/ Avoid unused "throws" clauses [GLOBAL.AUT-2]

8-8.如果一个package-private的"class/interface"没有子集则把他声明为"final"/ Declare a package-private "class/interface" "final" if it is not subclassed [GLOBAL.SPAC-2]

8-9.如果一个package-private的方法没有没有被覆写则把他声明为"final"/ Declare a package-private method "final" if it is not overridden [GLOBAL.SPAM-2]

8-10.在有效类中应保证正确的构造器声明/ Ensure correct constructor declarations in utility classes [GLOBAL.UCC-2]

8-11.如果方法不使用实例化类成员则使他们为"static"/ Make methods "static" if they do not use instance class members [GLOBAL.ASI-3]

8-12.声明"public/protected"类型尽可能无法访问/ Declare "public/protected" types as inaccessible as possible [GLOBAL.DPPC-4]

8-13.声明"public/protected"字段尽可能无法访问/Declare "public/protected" fields as inaccessible as possible [GLOBAL.DPPF-4]

8-14.声明"public/protected"方法尽可能无法访问/Declare "public/protected" methods as inaccessible as possible [GLOBAL.DPPM-4]

8-15.避免全局从未使用"public/protected"类型Avoid globally unused "public/protected" types [GLOBAL.UPPC-4]

8-16.避免全局从未使用"public/protected"字段/ Avoid globally unused "public/protected" fields [GLOBAL.UPPF-4]

8-17.避免全局从未使用"public/protected" 方法和注释成员类型/ Avoid globally unused "public/protected" methods/annotation member types [GLOBAL.UPPM-4]

8-18.声明一个"public/protected" "class/interface"没有子集则声明为"final"/ Declare a "public/protected" "class/interface" "final" if it is not subclassed [GLOBAL.SPPC-5]

8-19.如果一个"public/protected"方法没有被覆写则声明为"final"/ Declare a "public/protected" method "final" if it is not overridden [GLOBAL.SPPM-5]

9. Initialization [INIT]

9-1.在初始化期间不要使用非final "static"字段/ Do not use non-final "static" fields during the initialization [INIT.NFS-2]

9-2.使用外部初始化/不要用默认值对"static"字段初始化/ Use explicit initializations/Do not initialize "static" fields to default values [INIT.SF-2]

9-3.避免在构造器执行前或执行期间对该字段进行非初始化的读取/ Avoid uninitialized reads of fields before or during constructor execution [INIT.UIRC-2]

9-4.明确的在声明语句中初始化所有局部变量/ Initialize all local variables explicitly at the declaration

statement [INIT.LV-3]

9-5.不要同非"final" "static"变量一起初始化"static" "final"变量/ Do not initialize "static" "final" variables with non "final" "static" variables [INIT.SFA-3]

9-6.在所有"static final"字段被赋值前不要使用"static"初始化方式创建一个当前类的实例/ Do not use a "static" initializer that creates an instance of the current class before all "static final" fields are assigned [INIT.SICUI-3]

9-7.在构造器中明确的初始化所有字段/ Explicitly initialize all fields in a constructor [INIT.CSI-4]

9-8.不要对字段进行环状的初始化方式/ Do not use initialization circularities for fields [INIT.IC-4]

10. Internationalization [INTER]

10-1.当调用'String'转换方法时提供'Locale'自变量/ Provide 'Locale' argument when invoking 'String' conversion methods [https://www.doczj.com/doc/d317416904.html,L-3]

10-2.在国际化环境中隔离可翻译的文本资源包/ Isolate translatable text in resource bundles in an Internationalized environment [INTER.ITT-3]

10-3.当实例化'SimpleDateFormat'对象时提供'Locale'自变量/ Provide 'Locale' argument when instantiating 'SimpleDateFormat' objects [INTER.SDFL-3]

10-4.在国际化环境中不要使用单一的逻辑操作字符/ Do not use single characters with logic operators in an Internationalized environment [INTER.CLO-4]

10-5.在国际化环境中不要使用String串/ Do not use String concatenation in an Internationalized environment [INTER.COS-4]

10-6.在国际化环境中对日期变量不要调用'toString ()'/ Do not call 'toString ()' on Date variables in an Internationalized environment [INTER.DTS-4]

10-7.在国际化环境中对常量使用单一字面意义的字符/ Use single character literals in constants in an Internationalized environment [INTER.NCL-4]

10-8.在国际化环境中对数字量不要调用'toString ()'/ Do not call 'toString ()' on numeric variables in an Internationalized environment [INTER.NTS-4]

10-9.在国际化环境中不要调用'https://www.doczj.com/doc/d317416904.html,pareTo ()'/ Do not call 'https://www.doczj.com/doc/d317416904.html,pareTo ()' in an Internationalized environment [INTER.SCT-4]

10-10.在国际化环境中不要调用'String.equals ()'/ Do not call 'String.equals ()' in an Internationalized environment [INTER.SE-4]

10-11.在国际化环境中不要使用'StringTokenizer'/ Do not use 'StringTokenizer' in an Internationalized environment [INTER.ST-4]

10-12.在国际化环境中不要调用'Time.toString ()'/ Do not call 'Time.toString ()' in an Internationalized environment [INTER.TTS-4]

11. Java 2 Micro Edition [J2ME](微型平台暂时不翻译)

Do not use anonymous classes as interface implementors [J2ME.ACII-1]

Do not use an array length in a loop condition expression [J2ME.ARLL-1]

Avoid constant initializations of primitive arrays that exceed a certain size [J2ME.CIPA-1]

Avoid classes that are subclassed only once and are not publicly used [J2ME.CSOO-1]

Do not access a field excessively [J2ME.EAOF-1]

Ensure methods use return parameters instead of returning new objects [J2ME.EURP-1]

Catch 'OutOfMemoryError' for large array allocations [J2ME.OOME-1]

12. Javadoc Comments [JA VADOC]

12-1.避免不使用Javadoc标记/ Avoid unused Javadoc tags [JA V ADOC.DPMT-1]

12-2.在方法的Javadoc注释中使用'@return' Javadoc标记/ Use the '@return' Javadoc tag in method Javadoc comments [JA V ADOC.MRDC-1]

12-3.对方法的每个参数使用'@param' Javadoc标记/ Use the '@param' Javadoc tag for each parameter of methods [JA V ADOC.PARAM-1]

12-4.为类型提供Javadoc注释和描述/ Provide Javadoc comments and descriptions for types [JA V ADOC.PJDC-1]

12-5.为字段提供Javadoc注释和描述/ Provide Javadoc comments and descriptions for fields [JA V ADOC.PJDF-1]

12-6.为方法提供Javadoc注释和描述/Provide Javadoc comments and descriptions for methods [JA V ADOC.PJDM-1]

12-7.在"synchronized"的方法和块中使用'@concurrency' Javadoc标记/ Use the '@concurrency' Javadoc tag on "synchronized" methods and blocks [JA VADOC.SMJT-1]

12-8.在方法中使用'@throws'或'@exception' Javadoc标记/ Use the '@throws' or '@exception' Javadoc tag in methods [JA V ADOC.THROW-1]

12-9.在"void"方法中避免使用'@return' Javadoc标记/ Avoid using the '@return' Javadoc tag on "void" methods [JA V ADOC.VMCR-1]

12-10.在Javadoc注释的声明中使用'@author' Javadoc标记/ Use the '@author' Javadoc tag in declaration Javadoc comments [JA VADOC.MAJDT-3]

12-11.在Javadoc注释的类型中使用'@version'标记/ Use the '@version' tag in type Javadoc comments [JA V ADOC.MVJDT-3]

12-12.适当的定义Javadoc标记/ Order Javadoc tags appropriately [JA V ADOC.ORDER-3]

12-13.为'toString ()'方法提供Javadoc注释/ Provide Javadoc comment for 'toString ()' method [JA V ADOC.TSMJT-3]

12-14.避免没有在Javadoc注释中使用过的不支持的'@'标记和其他标记/ Avoid unsupported '@' tags and other tags that should not be used in Javadoc comments [JA V ADOC.BT-4]

12-15.不要在Javadoc注释和描述中插入非Javadoc注释/ Do not insert non-Javadoc comments between Javadoc comments and declarations [JA V ADOC.JNJD-5]

12-16.强制控制使用Javadoc注释的行数/ Enforce restraint on number of lines used for Javadoc comments [JA V ADOC.SINGLE-5]

13. Java Database Connectivity [JDBC]

13-1.在"finally"块中关闭JDBC连接/ Close JDBC connections in "finally" blocks [JDBC.CDBC-1]

13-2.为JDBC连接重新使用数据源/ Reuse data sources for JDBC connections [JDBC.DSLV-2]

13-3.在"finally"块中关闭JDBC资源/ Close JDBC resources in "finally" blocks [JDBC.RRWD-2]

13-4.使用javax.sql.DataSource去获取数据库连接/ Use javax.sql.DataSource to get the database connection [JDBC.UDS-4]

14. JavaServer Pages [JSP]

14-1.不要有超过一个的同样名字的字段/ Do not have more than one field with the same name [JSP.DUPF-1] 14-2.不要有超过一个的同样名字的局部变量/Do not have more than one local variable with the same name [JSP.DUPLV-1]

14-3.不要有超过一个的同样签名的方法/Do not have more than one method with the same signature [JSP.DUPM-1]

14-4.在include指令中确保不出现无限循环/ Ensure infinite loops do not occur in include directives [JSP.INF-1] 14-5.确保保留的局部变量名没有使用/ Ensure that reserved local variable names are not used [JSP.URLV-1]

14-6.为每个JSP文件提供一个标题注释/ Provide a header comment for each JSP file [JSP.JSPH-2]

15. JavaServer Page Metrics [JMETRICS]

15-1.在JSP文件中遵循限定的Java行数/ Follow limit for number of Java lines in JSP file [JMETRICS.NJL-2] 15-2.在JSP文件中遵循限定的字段数/ Follow limit for number of fields in a JSP file [JMETRICS.NOF-2]

15-3.在JSP文件中遵循限定的JSP声明数/ Follow limit for number of JSP declarations in JSP file [JMETRICS.NOJD-2]

15-4.在JSP文件中遵循限定的JSP脚本数/ Follow limit for number of JSP scriptlets in a JSP file [JMETRICS.NOJS-2]

15-5.在JSP文件中遵循限定的方法数/ Follow limit for number of methods in a JSP file [JMETRICS.NOM-2] 15-6.在JSP文件中遵循限定的package-private字段数/ Follow limit for number of package-private fields in a JSP file [JMETRICS.NOPKGF-2]

15-7.在JSP文件中遵循限定的package-private方法数/Follow limit for number of package-private methods in a JSP file [JMETRICS.NOPKGM-2]

15-8.在JSP文件中遵循限定的"private"字段数/Follow limit for number of "private" fields in JSP file [JMETRICS.NOPRIF-2]

15-9.在JSP文件中遵循限定的"private"方法数/Follow limit for number of "private" methods in a JSP file [JMETRICS.NOPRIM-2]

15-10.在JSP文件中遵循限定的"protected"字段数/Follow limit for number of "protected" fields in a JSP file [JMETRICS.NOPROF-2]

15-11.在JSP文件中遵循限定的"protected"方法数/Follow limit for number of "protected" methods in a JSP file [JMETRICS.NOPROM-2]

15-12.在JSP文件中遵循限定的"public"字段数/Follow limit for number of "public" fields in a JSP file [JMETRICS.NOPUBF-2]

15-13.在JSP文件中遵循限定的"public"方法数/Follow limit for number of "public" methods in a JSP file [JMETRICS.NOPUBM-2]

15-14.Java行数遵循限定的百分比/ Follow limit for percentage of Java lines (%) [JMETRICS.PJL-2]

16. JUnit Test Case [JUNIT]

16-1.构造'suite()'方法为"public"和"static"/ Make 'suite()' methods "public" and "static" [JUNIT.SUITE-1]

16-2.确定所有方法都有至少一个JUnit测试方法/ Make sure all methods have at least one JUnit test method [JUNIT.TEST-1]

16-3.不要使用构造器去装配测试用例/ Do not use the constructor to set up test cases [JUNIT.OSIC-2]

16-4.确保JUnit测试用例包含断言方法/ Ensure JUnit test cases include assertion methods [JUNIT.SIA-2]

16-5.在JUnit断言中包含一个消息串/ Include a message string in JUnit assertions [JUNIT.ASSERT-3]

16-6.在'setUp()'中调用'super.setUp()'和在'tearDown()'中调用'super.tearDown()'/ Call 'super.setUp()' in 'setUp()' and 'super.tearDown()' in 'tearDown()' [JUNIT.CSUPER-3]

16-7.强制一个条件失败使用fail()方法代替使用assertTrue(false)或assertFalse(true)方法/ Use the fail() method instead of forcing a failed condition using the assertTrue(false) or assertFalse(true) method [JUNIT.FAIL-3]

16-8.覆写'setUp ()'方法/ Override the 'setUp ()' method [JUNIT.OSUM-3]

16-9.覆写'tearDown ()'方法/ Override the 'tearDown ()' method [JUNIT.OTDM-3]

16-10.为JUnit测试方法包含一个适当的Javadoc标记/ Include an appropriate Javadoc tag in the Javadoc for JUnit test methods [JUNIT.UPJT-3]

16-11.单元测试对不要使用困难编码的数据/ Do not hard code the location to data used by a unit test [JUNIT.AHLOD-4]

16-12.确保JUnit类有一个main()允许他们独立执行/ Ensure that JUnit classes have a main() allowing them to be executed in isolation [JUNIT.MAIN-4]

16-13.类测试应放置每个测试类在相同的位置/ Place each test class in the same location as the class that it tests [JUNIT.DIR-5]

17. Class Metrics [METRICS]

17-1.在一个"class"或"interface"中遵循限定的注释行数/ Follow the limit for number of comment lines in a "class" or "interface" [https://www.doczj.com/doc/d317416904.html,NL-2]

17-2.遵循限定的"class"或"interface"继承层次/ Follow the limit for "class" or "interface" inheritence level [METRICS.CIHL-2]

17-3.在一个方法中遵循限定的注释行数/ Follow the limit for number of comment lines in a method [https://www.doczj.com/doc/d317416904.html,LM-2]

17-4.在一个"class"或"interface"中遵循限定的语句行数/ Follow the limit for number of statment lines in a "class" or "interface" [METRICS.CSNL-2]

17-5.在一个"class"或"interface"中遵循限定的行数/Follow the limit for number of lines in a "class" or "interface" [METRICS.CTNL-2]

17-6.遵循限定的字段数/ Follow the limit for number of fields [METRICS.NOF-2]

17-7.遵循限定的方法数/Follow the limit for number of methods [METRICS.NOM-2]

17-8.遵循限定的package-private字段数/Follow the limit for number of package-private fields [METRICS.NPKGF-2]

17-9.遵循限定的package-private方法数/Follow the limit for number of package-private methods [METRICS.NPKGM-2]

17-10.遵循限定的"private"字段数/Follow the limit for number of "private" fields [METRICS.NPRIF-2]

17-11.遵循限定的"private"方法数/Follow the limit for number of "private" methods [METRICS.NPRIM-2]

17-12.遵循限定的"protected"字段数/Follow the limit for number of "protected" fields [METRICS.NPROF-2] 17-13.遵循限定的"protected"方法数/Follow the limit for number of "protected" methods [METRICS.NPROM-2]

17-14.遵循限定的"public"字段数/Follow the limit for number of "public" fields [METRICS.NPUBF-2]

17-15.遵循限定的"public"方法数/Follow the limit for number of "public" methods [METRICS.NPUBM-2]

17-16.遵循限定的Javadoc注释百分比/ Follow the limit for percentage of Javadoc comments (%) [METRICS.PJDC-2]

17-17.在一个方法中遵循限定的语句行数/ Follow the limit for number of statement lines in a method [METRICS.SNLM-2]

17-18.在一个方法中遵循限定的语句数/Follow the limit for number of statements in a method [METRICS.STMT-2]

17-19.遵循限定的迭代复杂/ Follow the limit for Cyclomatic Complexity [METRICS.TCC-2]

17-20.在一个方法中遵循限定的行数/ Follow the limit for number of lines in a method [METRICS.TNLM-2] 17-21.遵循限定的方法调用数/ Follow the limit for number of method calls [METRICS.TNMC-2]

17-22.遵循限定的参数/ Follow the limit for number of parameters [METRICS.TNOP-2]

17-23.遵循限定的"return"语句数/ Follow the limit for number of "return" statements [METRICS.TRET-2]

17-24.在一个匿名类中遵循限定的行数/ Follow the limit for number of lines in anonymous class [METRICS.ACTNL-3]

17-25.遵循限定的每个switch-case语句/Follow the limit for statements of each switch-case [METRICS.CASE-3]

17-26.遵循限定的嵌套-if层次/ Follow the limit for nested-if levels [METRICS.DIF-3]

17-27.遵循限定的嵌套-try层次/ Follow the limit for nested-try levels [METRICS.DTRY-3]

17-28.在一个文件中遵循限定的import数/ Follow the limit for number of import statements in a file [METRICS.IMPT-3]

17-29.在一个方法声明中遵循限定的抛出声明数/ Follow the limit for the number of throws declarations in a method declaration [METRICS.TNOT-3]

18. Miscellaneous [MISC]

18-1.不使用一个对象去访问"static"字段或方法/ Do not use an object to access "static" fields or methods [MISC.AUO-1]

18-2.在'clone ()'方法中不要使用构造器/ Do not use constructors in the 'clone ()' method [MISC.CLNC-1]

18-3.在所有'clone ()'方法中调用'super.clone ()'/ Call 'super.clone ()' in all 'clone ()' methods [MISC.CLONE-1] 18-4.不要使用不赞成的APIs/ Do not use deprecated APIs [MISC.DPRAPI-1]

18-5.为所有'Serializable'类创建一个'serialVersionUID'/ Create a 'serialVersionUID' for all 'Serializable' classes [MISC.DUID-1]

18-6.声明"private"的常量字段为"final"/ Declare "private" constant fields "final" [MISC.FF-1]

18-7.不要使方法的局部变量和参数与类字段同名/ Do not give method local variables and parameters the same name as class fields [MISC.HMF-1]

18-8.以一个条件和增量语句声明"for"循环/ Declare "for" loops with a condition and an increment statement [MISC.PCIF-1]

18-9.重声明一个类仅用"abstract"方法和"static final"字段做为"interface"/ Redeclare a class with only "abstract" methods and "static final" fields as an "interface" [MISC.ASFI-2]

18-10.在一个非"public"类内不要声明构造器为"public"/ Do not declare "public" constructors in non-public classes [MISC.PCTOR-2]

18-11.仅仅在块的开始处添加声明/ Put declarations only at the beginning of blocks [MISC.PDBB-2]

18-12.避免使用"public static final"队列字段/ Avoid using "public static final" array fields [MISC.PSFA-2]

18-13.String分解用'StringTokenizer'代替'indexOf ()'或'substring ()'/ Use 'StringTokenizer' instead of 'indexOf ()' or 'substring ()' for String parsing [https://www.doczj.com/doc/d317416904.html,T-2]

18-14.避免使用被依赖的包或类型/ Avoid using certain packages or types [MISC.APT-3]

18-15.返回空队列来代替"null"/ Return zero-length arrays instead of "null" [MISC.ARN-3]

18-16.为条件语句提供一个'{}'块/ Provide a '{}' block for conditional statements [MISC.BLK-3]

18-17.在"abstract"类内不要声明构造器为"public"/ Do not declare "public" constructors in "abstract" classes [MISC.NPAC-3]

18-18.确保"public"类有至少一个"public"或"protected"成员/ Ensure "public" classes have at least one "public" or "protected" member [MISC.PMPC-3]

18-19.如果需要精确的回复不要使用"float"和"double"/ Do not use "float" and "double" if exact answers are required [MISC.UBD-3]

18-20.不要使用"break"和/或"continue"语句/ Do not use "break" and/or "continue" statements [MISC.CONTINUE-4]

18-21.不要从构造器调用非"final",非"static"和非"private"方法/ Do not call non-"final", non-"static" and non-"private" methods from constructors [MISC.CTOR-4]

18-22.在变量使用后尽可能声明变量终结/ Declare variables as close as possible to where they are used [MISC.DVCU-4]

18-23.声明局部变量为常量"final"/ Declare constant local variables "final" [MISC.FLV-4]

18-24.不要使用太多非"final" "static"字段/ Do not use too many non-"final" "static" fields [MISC.MSF-4]

18-25.避免string字面意义除了常量声明和调用System.out or System.err's 'print' or 'println'方法/ Avoid string literals except in constant declarations and calls to System.out or System.err's 'print' or 'println' methods [MISC.SL-4]

18-26.确保代码不包含TODO注释/ Ensure that code does not contain TODO comments [MISC.TODO-4]

18-27.不要对"Throwable"对象调用'printStackTrace()'方法/ Do not call the 'printStackTrace()' method of "Throwable" objects [MISC.ACPST-5]

18-28.不要对方法参数进行赋值/ Do not make assignments to method parameters [MISC.AFP-5]

18-29.避免使用"do-while"语句/ Avoid using "do-while" statements [MISC.DOWHILE-5]

18-30.使用"for"循环代替"while"循环/ Use "for" loops instead of "while" loops [MISC.PFL-5]

18-31.避免在单一个类中重复出现字面意义的string/ Avoid repeated string literals in a single class [MISC.RSL-5]

18-32.避免系统'print()'或'println()'的语句/ Avoid System 'print()' or 'println()' statements [MISC.SIO-5]

19. Naming Conventions [NAMING]

19-1.为getter方法预先以'get'命名/ Prepend 'get' to the names of getter methods [NAMING.GETA-1]

19-2.仅仅使用'is...'命名方法返回一个"boolean"/ Use 'is...' only for naming methods that return a "boolean" [NAMING.IRB-1]

19-3.不要使用一个Sun保留的包名/ Do not use a package name that is reserved by Sun [NAMING.RPKG-1] 19-4.在一个"interface"中使用大写字母命名所有字段/ Use all uppercase letters for the names of fields in an "interface" [NAMING.IFV-2]

19-5.为类使用一个约定的命名/ Use a naming convention for classes [NAMING.NCL-2]

19-6.为异常使用一个约定的命名/Use a naming convention for exceptions [NAMING.NE-2]

19-7.为非"static"字段使用一个约定的命名/Use a naming convention for non-"static" fields [NAMING.NIF-2] 19-8.为接口使用一个约定的命名/Use a naming convention for interfaces [NAMING.NITF-2]

19-9.为局部变量常使用一个约定的命名/Use a naming convention for local variables [NAMING.NLV-2]

19-10.为非"static"方法使用一个约定的命名/Use a naming convention for non-"static" methods [NAMING.NM-2]

19-11.为方法参数使用一个约定的命名/Use a naming convention for method parameters [NAMING.NMP-2] 19-12.为非"final" "static"字段使用一个约定的命名/Use a naming convention for non-"final" "static" fields [NAMING.NSF-2]

19-13.为"static"方法使用一个约定的命名/Use a naming convention for "static" methods [NAMING.NSM-2]

19-14.为"package"名使用一个约定的命名/Use a naming convention for "package" names [NAMING.PKG-2] 19-15.为setter方法预先以'set'命名/ Prepend 'set' to the names of setter methods [NAMING.SETA-2]

19-16.在"final" "static"字段命名中不要使用小写字母/ Do not use lowercase letters in "final" "static" field names [https://www.doczj.com/doc/d317416904.html,F-2]

19-17.预先以'is, can, has, have, are, was'来命名"boolean"getter方法/ Prepend 'is, can, has, have, are, was' to the names of "boolean" getter methods [NAMING.GETB-3]

19-18.避免类或接口命名超过14个字符的长度/ Avoid class or interface names which are more than 14

characters long [NAMING.LCIN-4]

19-19.为自变量使用匈牙利法则/ Use Hungarian notation for variables [NAMING.UHN-4]

19-20.使用常规的自变量名/ Use conventional variable names [NAMING.CVN-5]

19-21.为"abstract"类使用一个常规的命名/ Use a naming convention for "abstract" classes [NAMING.NACL-5] 19-22.为"final"局部自变量使用一个常规的命名/ Use a naming convention for "final" local variables [NAMING.NFL-5]

20. Object Oriented Programming [OOP]

20-1.避免"public"/"protected"/package-private字段/ Avoid "public"/"protected"/package-private fields [OOP.AF-1]

20-2.不要隐藏继承字段/ Do not hide inherited fields [OOP.AHF-1]

20-3.不要隐藏继承"static"成员方法/ Do not hide inherited "static" member methods [OOP.AHSM-2]

20-4.避免超过两层嵌套的匿名类/ Avoid more than two levels of nested inner classes [OOP.LEVEL-2]

20-5.不要覆写一个实例化的"private"类/ Do not override an instance "private" method [OOP.OPM-2]

20-6.在outer类中不要隐藏继承字段/ Do not hide fields in outer classes [OOP.HIF-3]

20-7.实现接口为非平凡或"abstract"/ Implement interfaces non-trivially or "abstract" [OOP.IIN-5]

21. Optimization [OPT]

21-1.当创建String对象去支持字面意义string时不要使用"new"关键字/ Do not use the "new" keyword when creating String objects to hold string literals [OPT.ACDO-1]

21-2.在"finally"块中关闭输入和输出资源/ Close input and output resources in "finally" blocks [OPT.CIO-1]

21-3.避免不必要的"instanceof"赋值/ Avoid unnecessary "instanceof" evaluations [OPT.UISO-1]

21-4.避免不必要的强制类型转换/ Avoid unnecessary casting [OPT.UNC-1]

21-5.不要通过新对象实例化来获取'Class'对象/ Do not get the 'Class' object through new object instantiation [OPT.AGC-2]

21-6.使用'System.arraycopy ()'代替使用一个循环来拷贝arrays/ Use 'System.arraycopy ()' instead of using a loop to copy arrays [OPT.IRB-2]

21-7.对非常量strings使用'StringBuffer'来代替'String'/ Use 'StringBuffer' instead of 'String' for non-constant strings [https://www.doczj.com/doc/d317416904.html,B-2]

21-8.对非常量strings使用'String'来代替'StringBuffer'/ Use 'String' instead of 'StringBuffer' for constant strings [https://www.doczj.com/doc/d317416904.html,C-2]

21-9.使用简短的赋值运算/ Use abbreviated assignment operators [OPT.AAS-3]

21-10.不要使用'Boolean'对象实例化/ Do not use 'Boolean' object instantiation [OPT.BOOLEAN-3]

21-11.返回单一化"boolean"/ Simplify "boolean" returns [OPT.BR-3]

21-12.在条件循环语句中不要调用方法/ Do not call methods in loop condition statements [OPT.CEL-3]

21-13.只有一个方法访问时不要使用"private"字段;改变他成为一个局部变量/ Do not use a "private" field that is accessed in only one method; change it to a local variable [OPT.CTLV-3]

21-14.定义初始的'ArrayList', 'HashMap', 'HashSet', 'Hashtable', 'Vector' and 'WeakHashMap'计算效率/ Define initial capacities for 'ArrayList', 'HashMap', 'HashSet', 'Hashtable', 'Vector' and 'WeakHashMap' [OPT.DIC-3]

21-15.避免对象实例化因为可能需要产生访问/ Avoid object instantiations that might need generated accessors [OPT.ICGA-3]

21-16.不要在一个循环体中实例化变量/ Do not instantiate variables in a loop body [OPT.LOOP-3]

21-17.同一个已知的编译时间值"static"一样声明"final"字段/ Declare "final" fields with a known compile time value as "static" [OPT.NSF-3]

21-18.对于一个字符的比较使用'charAt()'来代替'startsWith()'/ Use 'charAt()' instead of 'startsWith()' for one character comparisons [OPT.PCTS-3]

21-19.指定一个初始的'StringBuffer'容量/ Specify an initial 'StringBuffer' capacity [OPT.SB-3]

21-20.对于单一字符string串联使用单一引用代替双重引用/ Use single quotes instead of double quotes for single character string concatenation [OPT.STR-3]

21-21.不要在'https://www.doczj.com/doc/d317416904.html,ng.String'对象之上调用'toString()'/ Do not invoke 'toString()' on 'https://www.doczj.com/doc/d317416904.html,ng.String' object [OPT.STS-3]

21-22.不要在一个循环中调用"synchronized"方法/ Do not call a "synchronized" method in a loop [OPT.SYN-3] 21-23.在循环之外放置"try/catch/finally"块/ Place "try/catch/finally" blocks outside of loops [OPT.TRY-3]

21-24.不以"true"比较布尔变量/ Do not compare boolean variables with "true" [OPT.UEQ-3]

21-25.避免使用不可靠的非短路的逻辑/ Avoid questionable uses of non-short-circuit logic [https://www.doczj.com/doc/d317416904.html,CL-3]

21-26.只要有可能就使用'stack'变量/ Use 'stack' variables whenever possible [https://www.doczj.com/doc/d317416904.html,V-3]

21-27.为了实例化字段为"final"而构造访问的方法Make accessor methods for instance fields "final" [OPT.MAF-4]

21-28.使用右位移运算来除去2的幂次方/ Use the right shift operator for division by powers of 2 [OPT.SDIV-4] 21-29.如果可能的话声明成员类为"static"/ Declare member classes "static" if possible [OPT.SI-4]

21-30.使用左位移运算来乘上2的幂次方/ Use the left shift operator for multiplication by powers of 2 [OPT.SMUL-4]

21-31.仅仅在接口中使用"instanceof"/ Use "instanceof" only on interfaces [OPT.INSOF-5]

21-32.在'toArray()'中使用集合大小作为array目标/ Use collection size for target array in 'toArray()' [OPT.TOARRAY-5]

22. Possible Bugs [PB]

22-1.避免不对齐的"else"语句/ Avoid dangling "else" statements [PB.ADE-1]

22-2.避免"try", "catch"和"finally"块体为空/ Avoid "try", "catch" and "finally" blocks with empty bodies [PB.AECB-1]

22-3.如果其他"return"在try-catch块内则避免"return"里有"finally"块/ Avoid "return"s inside "finally" blocks if there are other "return"s inside the try-catch block [PB.ARCF-1]

22-4.避免在一个"if"条件里赋值/ Avoid assignment within an "if" condition [PB.ASI-1]

22-5.避免条件表达式总是求一个常量的值/ Avoid conditional expressions that always evaluate to a constant value [https://www.doczj.com/doc/d317416904.html,-1]

22-6.不要在'https://www.doczj.com/doc/d317416904.html,ponentResized()'中调用'setSize()'/ Do not call 'setSize()' in 'https://www.doczj.com/doc/d317416904.html,ponentResized()' [PB.DNCSS-1]

22-7.避免控制语句块体为空/ Avoid control statements with empty bodies [PB.EB-1]

22-8.确保IllegalArgumentException信息匹配代码逻辑/ Make sure the IllegalArgumentException message matches the code logic [PB.IIAE-1]

22-9.仅仅使用'main()'方法名作为方法的入口点/ Use the method name 'main()' only for the entry point method [PB.MAIN-1]

22-10.不要让类中的非构造方法同名/ Do not give non-constructor methods the same name as the class [PB.NAMING-1]

22-11.不要直接或间接的定义'Error'和'Throwable'的子集/ Do not define direct or indirect subclasses of 'Error' and 'Throwable' [PB.NDC-1]

22-12.避免超出范围的"char"比较/ Avoid out of range "char" comparisons [PB.OOR-1]

22-13.确保get/set方法访问了正确的变量/ Ensure get/set methods are accessing the correct variables [PB.SG-1]

22-14.确保"switch"语句没有包含排版/ Ensure "switch" statements do not contain typos [PB.TLS-1]

22-15.避免不能达到的"else if"和"else"状况/ Avoid unreachable "else if" and "else" cases [PB.UIF-1]

22-16.确保自变量转到Java包装类别没有包含排版/ Ensure that arguments passed to Java wrapper classes do not contain typos [PB.WT-1]

22-17.对于'java.util.Properties'对象避免'put, 'putAll'和'get'方法/ Avoid 'put, 'putAll' and 'get' methods of 'java.util.Properties' objects [PB.APPG-2]

22-18.对最低精度不要粗略的强制转换数据类型/ Do not cast primitive data types to lower precision [PB.CLP-2]

22-19.不要比较浮点类型/ Do not compare floating point types [PB.DCF-2]

22-20.对于总是返回false不要调用'equals()'方法/ Do not call 'equals()' methods that always return false [PB.EQUS-2]

22-21.不要在一个"for"循环体中给循环控制变量赋值/ Do not assign loop control variables in the body of a "for" loop [PB.FLV A-2]

22-22.确保覆写的方法名没有排版/ Ensure the overriding method name does not have a typo [PB.IMO-2]

22-23.在能够序列化的类中为'readResolve ()'和'writeReplace ()'方法分配"protected"的可见度/ Assign "protected" accessibility to 'readResolve ()' and 'writeReplace ()' methods in serializable classes [PB.MASP-2]

22-24.不要对'finalize()'方法负载/ Do not overload the 'finalize()' method [PB.OF-2]

22-25.确保方法自变量能够序列化/ Ensure method arguments are serializable [PB.ONS-2]

22-26.为每个"switch"语句提供"default:"/ Provide "default:" for each "switch" statement [PB.PDS-2]

22-27.避免字段和/或局部变量的自我赋值/初始化/ Avoid self assignments/initializations to fields and/or local variables [PB.SAFL-2]

22-28.避免空语句/ Avoid empty statements [PB.AES-3]

22-29.避免在"finally"块中有"throw"语句/ Avoid "throw" statements in "finally" blocks [PB.A TSF-3]

22-30.避免从未使用的循环变量/ Avoid unused loop variables [PB.AULV-3]

22-31.避免错乱的构造器自变量赋值/ Avoid confusing assignments to constructor arguments [PB.AWP-3]

22-32.不要使用"+"字符连续运算去连接数字;仅仅使用他来对数字相加/ Do not use the "+" string concatenation operator to concatenate numbers; use it only to add numbers [PB.DCP-3]

22-33.避免空的类/ Avoid empty classes [PB.EC-3]

22-34.在'equals()'方法执行时使用'getClass()'/ Use 'getClass()' in the 'equals()' method implementation [PB.EQL-3]

22-35.在'equals()'方法执行内部使用'instanceof'/ Use 'instanceof' within an 'equals()' method implementation [PB.EQL2-3]

22-36.确保因为不同的参数类型覆写的方法没有是非预料的协变/ Ensure overriding methods are not unintended covariants due to parameter type differences [PB.IMC-3]

22-37.确保"static" "final"字段是恒量的/ Ensure "static" "final" fields are immutable [PB.IMM-3]

22-38.不要调用'String.equals ("literal")' or 'String.equalsIgnoreCase("literal")'/ Do not call 'String.equals ("literal")' or 'String.equalsIgnoreCase("literal")' [PB.ISEM-3]

22-39.不要在多个嵌套"for"循环语句上对同个自变量增量或减量/ Do not increment or decrement on the same variable over multiple nested "for" loop statements [PB.JI-3]

22-40.避免类不可访问/ Avoid classes that are not accessible [PB.NACC-3]

22-41.不要定义'RuntimeException'的直接或间接子集/ Do not define direct or indirect subclasses of 'RuntimeException' [PB.NXRE-3]

22-42.确保正好一个类型有同样的名与文件名/ Ensure that exactly one type has the same name as the file name [PB.OCSF-3]

22-43.在"switch"语句的最后情形放置"default"/ Place "default" as the last case of the "switch" statement [PB.PDCL-3]

22-44.在一个"catch"子句中不要重抛出一个异常/ Do not rethrow an exception in a "catch" clause [PB.RTE-3] 22-45.一个错误的"case"不要使用一个"switch"语句/ Do not use a "switch" statement with a bad "case" [PB.SBC-3]

22-46.不要使用'=='或'!='比较对象/ Do not use '==' or '!=' to compare objects [PB.UEIC-3]

22-47.确保'Iterator.next()'方法实现抛出'NoSuchElementException'/ Ensure 'Iterator.next()' method implementations throw 'NoSuchElementException' [PB.CTNSE-4]

22-48.确保方法返回值被使用/ Ensure method return values are used [PB.NASSIG-4]

22-49.避免可疑的八进制溢出/ Avoid suspicious octal escapes [PB.OE-5]

22-50.确保类或接口有同名且文件声明为"public"/ Ensure that the class or interface that has the same name as the file is declared "public" [PB.PCSF-5]

23. Portability [PORT]

23-1.不要使用'System.getenv ()'/ Do not use 'System.getenv ()' [PORT.ENV-1]

23-2.不要刻板的编写'\n'或'\r'来分隔行/ Do not hard code '\n', or '\r' as a line separator [PORT.LNSP-1]

23-3.不要直接使用"java.awt.peer.*"接口/ Do not use "java.awt.peer.*" interfaces directly [PORT.PEER-1]

23-4.不要使用'Runtime.exec()'/ Do not use 'Runtime.exec()' [PORT.EXEC-3]

23-5.不要使用用户定义"native"方法/ Do not use user-defined "native" methods [PORT.NATV-3]

24. Security [SECURITY]

24-1.在'writeObject()'方法中不要让DataOutputStream通过二进制/ Do not pass byte arrays to DataOutputStream in the 'writeObject()' method [SECURITY.CBA-1]

24-2.使所有成员类"private"/ Make all member classes "private" [SECURITY.INNER-1]

24-3.不要对类对象名进行比较/ Do not compare Class objects by name [SECURITY.CMP-2]

24-4.不要使用匿名类/ Do not use inner classes [SECURITY.AUIC-3]

24-5.为了安全使你的'clone ()'方法为"final"/ Make your 'clone ()' method "final" for security [SECURITY.CLONE-3]

24-6.使你的类nondeserializeabl/ Make your classes nondeserializeable [SECURITY.DSER-5]

24-7.使你的类不能克隆/ Make your classes noncloneable [SECURITY.MCNC-5]

24-8.为所有'Serializable'类实现'readObject()'/ Implement 'readObject()' for all 'Serializable' classes [SECURITY.OROM-5]

24-9.不要依赖"package"范围/ Do not depend on "package" scope [SECURITY.PKG-5]

24-10.使你的类不能序列化/ Make your classes nonserializeable [SECURITY.SER-5]

25. Serialization [SERIAL]

25-1.避免类实现'Externalizable'但不要定义一个空自变量构造器/ Avoid classes that implement 'Externalizable' but do not define a no-argument constructor [SERIAL.ENNAC-2]

25-2.避免能够序列化的类在零自变量的构造器外继承一个超类/ Avoid serializable classes that extend a superclass without a zero-argument constructor [SERIAL.SNNAC-3]

25-3.对于"synchronized"不要声明'readObject()'方法/ Do not declare the 'readObject()' method as "synchronized" [SERIAL.SROS-3]

25-4.确保能够序列化的类是正确的/ Ensure Serializable classes are correct [SERIAL.NSFSC-4]

26. Servlets [SERVLET]

26-1.声明一个"public"构造器获取为空参数/ Declare a "public" constructor that takes no parameters [SERVLET.MDC-1]

26-2.把System.out.println或System.err.println的使用减少的最低/ Minimize use of System.out.println or System.err.println [SERVLET.SOP-2]

26-3.不要在Servlet类中使用'SingleThreadModel'/ Do not use 'SingleThreadModel' in Servlet classes [SERVLET.STM-2]

26-4.在Servlets中尽量减少同步/ Minimize synchronization in Servlets [SERVLET.SYN-2]

26-5.不要在Servlet类中使用JDBC代码/ Do not use JDBC code in Servlet classes [SERVLET.AJDBC-3]

26-6.不要使用'java.beans.Beans.instantiate ()'/ Do not use 'java.beans.Beans.instantiate ()' [SERVLET.BINS-3] 26-7.确保在web.xml file文件中Servlet类有他们自己的引用名Ensure Servlet classes have their own reference names in the web.xml file [SERVLET.SNM-3]

26-8.使用一个背景对象管理HTTP请求参数/ Use a Context Object to manage HTTP request parameters [SERVLET.UCO-4]

27. Struts Framework [STRUTS]

27-1.在一个表格bean中每个字段都应该有适当的getter和setter方法/ Each field in a form bean should have an appropriate getter and setter method [STRUTS.FIELDS-3]

27-2.仅仅在表格beans里包含getter和setter方法/ Include only getter and setter methods in form beans [STRUTS.FORM-3]

27-3.不要在Struts Action类中声明实例变量/ Do not declare instance variables in Struts Action classes [STRUTS.INST-3]

27-4.不要在Struts代码中构造任何'getParameter'调用/ Do not make any calls to 'getParameter' in Struts code [STRUTS.PARAM-4]

28. Threads & Synchronization [TRS]

28-1.避免调用'Thread.resume()', 'Thread.stop()', 'Thread.suspend()',或'Runtime.runFinalizersOnExit()'/ Avoid calling 'Thread.resume()', 'Thread.stop()', 'Thread.suspend()', or 'Runtime.runFinalizersOnExit()' [TRS.THRD-1] 28-2.给线程的子集一个'run ()'方法/ Give subclasses of Thread a 'run ()' method [TRS.MRUN-2]

28-3.确保'wait()', 'notify()'和'notifyAll()'被调用于一个对象且在他们的方法范围内明确的被同步/ Ensure 'wait()', 'notify()' and 'notifyAll()' are invoked on an object that is clearly synchronized in its enclosing method scope [TRS.NSYN-2]

28-4.仅仅在一个"while"或"do-while"循环中调用'wait ()'/ Call 'wait ()' only inside a "while" or "do-while" loop [TRS.UWIL-2]

28-5.使用'wait()'和'notifyAll()'代替轮流检测的循环/ Use 'wait()' and 'notifyAll()' instead of polling loops [TRS.UWNA-2]

28-6.不要使用'notify()';使用'notifyAll()'来代替/ Do not use 'notify()'; use 'notifyAll()' instead [TRS.ANF-3]

28-7.不要使用'https://www.doczj.com/doc/d317416904.html,ng.ThreadGroup'类型的变量/ Do not use variables of type 'https://www.doczj.com/doc/d317416904.html,ng.ThreadGroup' [TRS.AUTG-3]

28-8.不要使用'Thread.yield'/ Do not use 'Thread.yield' [TRS.AUTY-3]

28-9.不要从一个"synchronized"方法中调用一个"synchronized"方法引起死锁/ Do not cause deadlocks by calling a "synchronized" method from a "synchronized" method [TRS.CSFS-3]

28-10.不要在一个继承于'Thread'的类的构造器里调用'start()'/ Do not call 'start()' inside the constructors of classes that extend 'Thread' [TRS.CSTART-3]

28-11.不要使用"Double Check Locking Pattern"/ Do not use "Double Check Locking Pattern" [TRS.DCL-3]

28-12.不要捕获'IllegalMonitorStateException'/ Do not catch 'IllegalMonitorStateException' [TRS.IMSE-3]

28-13.类实现'https://www.doczj.com/doc/d317416904.html,ng.Runnable'时不要调用'run()'方法/ Do not call 'run()' methods of classes implementing 'https://www.doczj.com/doc/d317416904.html,ng.Runnable' [TRS.IRUN-3]

28-14.不要同步非"final"字段/ Do not synchronize on non-"final" fields [TRS.SOUF-3]

28-15.避免缓慢初始化,那是不安全的线程/ Avoid lazy initializations that are not thread-safe [TRS.ILI-4]

28-16.不要在方法声明中使用"synchronized" modifier/ Do not use the "synchronized" modifier in the method declaration [TRS.NSM-5]

28-17.在方法中使用"synchronized"要实现'Runnable.run()'/ Use the "synchronized" modifier on methods that implement 'Runnable.run()' [TRS.RUN-5]

29. Unused Code [UC]

29-1.避免无用的局部变量/Avoid unused local variables [UC.AUV-2]

29-2.避免对从未读取的变量赋值/ Avoid assignments to variables that are never read [UC.A VNR-2]

29-3.避免不使用的"private"字段/ Avoid unused "private" fields [UC.PF-2]

29-4.避免不使用的"private"方法/ Avoid unused "private" methods [UC.PM-2]

29-5.在"catch"块中使用捕获异常/ Use a caught exception in the "catch" block [UC.UCA TCH-2]

29-6.避免不使用"import"的语句/ Avoid unused "import" statements [UC.UIMPORT-2]

29-7.避免不使用的参数/ Avoid unused parameters [UC.UP-2]

29-8.避免不使用的"private"类或接口/ Avoid unused "private" classes or interfaces [UC.UPC-2]

29-9.避免空的static初始化/ Avoid empty static initializers [UC.AESTAT-3]

29-10.避免不使用的标签/ Avoid unused labels [UC.AUL-3]

29-11.不要明确的"import"https://www.doczj.com/doc/d317416904.html,ng.*中的"package"/ Do not explicitly "import" the https://www.doczj.com/doc/d317416904.html,ng.* "package" // [UC.DIL-3]

29-11.避免空的'finalize()'方法/Avoid empty 'finalize()' methods [UC.EF-3]

29-12.避免空的"synchronized" 语句/ Avoid empty "synchronized" statements [UC.SNE-3]

29-13.避免不必要的if语句/ Avoid unnecessary 'if' statements [UC.UCIF-3]

29-14.避免在"void"方法最后使用不必要的"return"语句/ Avoid unnecessary "return" statement at the end of "void" methods [UC.VR-3]

29-14.确保使用的类没有明确继承'https://www.doczj.com/doc/d317416904.html,ng.Object'/ Ensure that classes do not explicitly extend 'https://www.doczj.com/doc/d317416904.html,ng.Object' [UC.AEEO-4] /////

29-15.避免多余的throw子句/ Avoid redundant throw clauses [UC.ARTD-4]

29-16.避免不必要的"boolean"比较/ Avoid unnecessary "boolean" comparisons [UC.BCMP-4]

29-17.不要从已经包含当前类的包里导入类/ Do not import classes from the package that contains the current class [UC.PIMPORT-4]

29-18.避免方法仅仅调用覆写的实现(超类实现)/ Avoid methods that only call the overridden implementation (superclass implementation) [UC.SO-4]

29-19.避免在一个"interface"中不必要的modifiers / Avoid unnecessary modifiers in an "interface" [UC.AAI-2]

30. Security (License Required) [SLR]

30-1.不要在'writeObject()'方法中通过可变的对象去'DataOutputStream'/ Do not pass mutable objects to 'DataOutputStream' in the 'writeObject()' method [SLR.CMO-1]

30-2.不要在'main'方法外部设置自定义的安全管理/ Do not set custom security managers outside of 'main' method [SLR.DSSM-1]

JTEST 第85回试卷

第85回 Ⅰ文法語彙問題 次の文の()に1?2?3?4の中から、最も適当な言葉を入れてください。 (1)はこの中にかぎが()あります。 1います2あります3します4きます (2)このかばんはあまり()ないです。 1おおき2おおきい3おおきく4おおきな (3)客「それは()ですか」 店員「100円です」 1どこ2いくら3だれ4なん (4)田中さんは()おもしろいです。 1しんせつ2しんせつな3しせつに4しんせつで(5))佐藤さんは目()きれいです。 1を2に3が4で (6)パク「それはどこのお菓子ですか」 高橋「フランス()です」 1の2に3が4を (7)はし()ごはんをたべます。。 1で2を3へ4は (8)今日は早く家へ()つもりです。 1かえり2かえる3かえって4かえろう(9)私はあの()に住んでいます。 1アパート2エレベーター3パーディー4コーヒー(10)来月京都へ()と思います。 1行き2行って3行こう4行か (11)けさ早く家()出ました 1へ2が3を4に (12)お茶が少ししか()。 1あります2ありません3飲みます4のむでしょう(13)あの黒い()をはいている人が私の父です。 1ネクタイ2セーター3ハンカチ4ズボン(14)これは大学へ()バスです。 1行き2行く3行って4行こう(15)「ぺんを忘れました。すみませんが、ぺんを()ください」 1かりて2あげて3もらって4かして(16)客「へやを予約したいですか」 受付「()」 1しつれいします2おだいじに 3かしこまりました4おせわになりました (17)「先生はもうこの小説を()か」 1読ませます2読まれました 3お読み4読ませられます (18)ゆうべはシャワーをあび()寝ました。 1ずに2まま3ところ4そうに (19)「ドアが()いますね。しめてください」 1あいて2あけて3しまって4はじまって

JTest 第82回A~D级原题

Ι文法語嚢問題 A 次の文の( )に1?2?3?4の中から最も適当な言葉を入れなさい。 (71)この本はわたし() です。 1 と 2 の 3 は 4 が (72)ここにはなにも()。 1 あります 2 ありました 3 ありません 4 ありますか (73)デパートへ服を( )に行きたいです。 1 買い 2買う 3 買って 4 買った (74)スポーツの中では何()得意ですか」 1 は 2 を 3 の 4 が (75)このお茶は()すぎる。 1 あつ 2 あつい 3 あつく 4 あつくて (76)()ながら母からの手紙を読んだ。 1 なき 2 なく 3 ないて 4 ないた (77) あの赤い()をはいている人が私の姉です。 1 アイス 2 マフラー 3 セーター4スカーフ (78)体のぐあいは昨日より()です。 1 おかげさま 2 すっかり 3 元気 4 まし (79) 「先生はどちらから()んですか」 1 いたした 2 もうした 3 いらっしゃった 4 まいった (80) 「言いたいことがある()はっきり言え!」 1 のに 2 だと 3 なら 4 とは (81)ヘレン「旅行先でたくさん詩を書きました」 高橋「へえ!今度私にも()ください。」 1 読んでもらって 2 読んでしまって 3 読まれて 4 読ませて (82)どうした訳()、彼女は急に会社を辞めたいと言い出した。 1 で 2 に 3 か 4 を (83)温度が80℃を超えると()が感知して機械が自動的に止まる。 1 戻り 2 戻って 3 戻った 4 戻ろう (84)最近山本さんは会社を()がちだ。 1 休み 2 休む 3 休もう 4 休ま (85)ほかの人の意見にももっと耳を()べきだ。 1 貸す 2 借りる 3 あげる 4 もらう

计算机多媒体技术-考题

单选题: 1、不借助其他软件,自身就可以进行解压缩的压缩文件称为______。 A.自修改文件 B.自删除文件 C.自解压文件 D.自运行文件 答案:C 2、以下四种软件中,用来编辑视频文件的是______。 A.ACDsee B.Photoshop C.Premiere D.WinRAR 答案:C 3、下列选项中,属于音频工具的是______。 A.RealPlayer B.WinZip C.word D.Flash 答案:A 4、下列选项中,属于声音格式文件的是______。 A.BMP B.GIP C.JPG D.WAV 答案:D 5、关于Windows自带的媒体播放机,下列说确的是______。 A.可以播放DVD B.可以播放DOC文件 C.可以播放Flash动画 D.可以播放PDF文件 答案:A 6、在下列各项中,属于音频文件格式的是______。 A.xlsx格式 B.exe格式 C.jpg格式 D.mp3格式 答案:D 7、下列格式中,属于图像文件格式的是______。 A.docx格式 B.exe格式 C.jpg格式

答案:C 8、有些类型的文件本身是以压缩格式存储的,例如______。 A.mp3音频文件 B.bmp图像文件 C.txt文本文件 D.exe可执行文件 答案:A 9、下列选项中,不属于音频工具的是______。 A.“录音机”工具 B.Goldwave C.RealPlayer D.Flash 答案:D 10、计算机可以通过______等设备获取图像。 A.Photoshop B.超级解霸 C.扫描仪﹑数码照相机和摄像机 D.彩色打印机 答案:C 11、多媒体技术的典型应用不包括______。 A.计算机辅助教学(CAI) B.娱乐和游戏 C.视频会议系统 D.计算机支持协同工作 答案:D 12、下列属于多媒体畴的是______。 A.彩色电视 B.彩色画报 C.立体声音乐 D.交互式视频游戏 答案:D 13、要使用Windows自带的Windows Media Player软件播放CD光盘,计算机应该配有______。 A.软盘驱动器 B.CD-ROM驱动器 C.硬盘驱动器 https://www.doczj.com/doc/d317416904.html,B驱动器 答案:B 14、通用的多媒体设备接口不包括______。 A.IEEE1394接口 B.SCSI接口

JTEST考试攻略名师优质资料

JTEST考试EF级题型解析及备考攻略11月JTEST考试在即,我根据在青岛华兴日语学校JTEST强化班授课经验和对考试研究为大家介绍下JTEST考试EF级题型解析及备考攻略 听力部分 1题型介绍 听力部分由4个大题,共40题,每题5分,总分200分。 2考试变化: 原有题型为 照片问题:5个小题 应答问题:15个小题, 会话问题:10个小题, 说明问题:10个小题; 从95回考试进行变革 照片问题:5个小题, 听读解问题:5个小题, 应答问题:15个小题, 会话说明问题:15个小题, 题型分析 1照片问题与以前的考题没有变化,根据一句问话选出正确答案,对于大部分考生来说,这个题型是比较拿分的。 2在原有题型的基础上增加了听读解,根据对话一边看图一边找答案,主要考察考生对于听力的理解和应变能力。 3应答问题是没有照片的,根据一句问话从3个选项中选出一个正确答案,主要考察学生对日语语感的把握和对基础知识的把握。 4会话说明问题把原有的会话问题和说明问题和到一个大题里面共计15题,主要对学生的综合知识,以及听力能力进行检验。 注意 4道听力大题的考试成绩都不能低于20%,每个单项低于20%的话总分即使达到了E级要求的350分或F要求的250分,也只有成绩认定,而没有等级证书认定,所以要求考生必须在保证20% 的前提下多多得分。

提高方法 那么如何提高自己的听力呢?我建议同学们在平日的日语学习中,背单词时多背句子,这样背单词同时既可以掌握基础文法又增加了语感;在掌握好文法的基础上,尽量多做听力练习,例如跟随磁带反复收听和朗读教材的单词、课文和课后练习题。预备考试时,反复去听JTEST每年真题听力。 正所谓冰冻三尺非一日之寒,只有平日进行大量的听力练习,才能在考试中立于不败之地。对于初学日语准备留学的同学来说,听力部分是一个难点,往往听力成绩决定你是否能及格,是否有等级证书,所以希望大家在备考时一定要对听力特别重视,加强对听力的强化训练力度。 读解部分 1题型介绍 读解部分共四道大题,60道小题,总分300分。 2题型分析 (1)文法词汇问题(22道小题,每题5分) 考点分析 1—10题主要是考察F级内容,包括 数量词1题, 时间词1题, 助词1-2题, 形容词1-2题, 动词1-2题。 11—22题中主要考察语法的活用,涉及形态的改变。 常出的高频语法ながら、あとで、まえに、等。 以及副词1题动词被动态, 使役态,使役被动态1题, 敬语1题。 学习方法 要求同学们在平时日语学习时,根据考试大纲,掌握基础词汇和文法知识,考试复习时将近几年的JTEST真题认真做一遍,通过大量的练习就可以将所学知识融会贯通,必能在考试中游刃有余。 (2)阅读理解题(共四篇文章10题,每题8分) 考点分析 阅读题考察的是对文章的综合理解能力,做题时要把握两个关键点:一、根据问题在文章中找答案,有原句看原句,没有原句要找意思相近的句子。并注意接续词,例如,つまり表明接下来的内容是真正要表达的部分。が、でも、けれど、表示作者的观点与前面描述部分出现转折等。二,一定不要以自己的主观思

J.TEST EF121回真题WORD版

J TEST実用日本语検定121回 EF級 Ⅰ文字語彙問題【各4点*25問=100点】 A次の文の()に1?2?3?4の中から最も適当な言葉を入れて下さい。 1 わたしは、きょう、学校()休みました。 ①に②を③の④が 2 けさ、コーヒーを2()飲みました。 ①まい②ひき③はい④だい 3 A:?このおかしは、()買いましたか? B:?家の近くのスーパーです? ①どこで②だれが③いつ④どうして 4 A:?きょうは、何日ですか? B:?()です? ①ななか②しちじ③ななつ④なのか 5 わたしは、学校までバス()行きます。 ①を②で③の④に 6 来年の()を部屋のかべにはりました。 ①エレベーター②カレンダー③キロメートル④テーブル 7 先週、京都へ旅行へ()行きました。 ①に②を③が④は 8 「すみませんが、ここで写真を()ないでください」 ①かか②かさ③とら④とな 9 「あの青いネクタイを()いる人が、田中さんです」 ①かぶって②はいて③着て④して 10 ?この部屋は()ですから、電気をつけましょう」 ①おもい②あかるい③かるい④くらい 11 きのうは、寒かったです()、きょうは、暑いです。 ①が②と③に④よ 12 ?次の駅で、電車を()? ①はいります②おります③つきます④とまります 13 A:?しゅみは、何ですか? B:「ギターをひく()です? ①まで②ます③こと④たり 14 わたしは、子どものとき、医者に()。 ①なるでした②なりたいでした③なったです④なりたかったです 15 「()がある人は、手をあげてください」 ①きぶん②いけん③けんか④せかい 16 帰る途中、急に雨が()出しました。 ①降って②降りて③降り④降る

J.TEST EF120回真题 WORD版

J TEST実用日本语検定120回 EF級 Ⅰ文字語彙問題【各4点*25問=100点】 A次の文の()に1?2?3?4の中から最も適当な言葉を入れて下さい。 1 けさ、パン()食べました。 ①の②が③を④と 2 きょうは、よっかです。あしたは、()です。 ①みっか②いつか③なのか④ようか 3 きのう、どこ()行きませんでした。 ①へも②かへ③にへ④でも 4 わたしは、ワンさんより、せ()高いです。 ①を②で③に④が 5 これから、家に帰って、()を浴びます。 ①シャワー②メートル③ニュース④テーブル 6 きのう、ペンを4()買いました。 ①がい②ほん③まい④だい 7 ()前に、いろいろな物を準備します。 ①出かけます②出かけ③出かけて④出かける 8 きのうは、雨でしたが、きょうは、天気が()なりました。 ①いいに②いい③よく④よいに 9 電車()かさを忘れました。 ①の②も③で④に 10 A:?この料理、本当においしいですね。? B:?()たくさん食べてください。? ①さっき②だんだん③もっと④そろそろ 11 ?運ぶ荷物がたくさんあるんです。すみませんが、ひとつ()? ①持ってくれませんか②持ってあげましょうか③持ちませんか④持ちましょうか 12 ?グエンさん()描いた絵は、どれですか? ①で②は③が④より 13 A:?たん生日、おめでとう。これ、プレセントです? B:ありがとう。()にします? ①かんたん②たいへん③しんせつ④たいせつ 14 会社まで、バスに()、歩いていきます。 ①乗らないで②乗りながら③乗りないで④乗らながら 15 仕事をやめたら、()に住みたいです。 ①きせつ②いなか③うりば④かない 16 A:「あしたから旅行なんだ」 B:「へえ、どこへ行く()?」 ①か②の③さ④に 17 かへに家族の写真が()あります。 ①はって②もって③さして④とまりて

【蔚蓝日本留学】J-testEF第103回真题+答案

第103回J.TEST実用日本語検定 (E-Fレベル) 正解 ■ 読解?記述問題 《 文法語彙問題 》 《 読解問題 》 《 漢字問題A 》 各5点 各8点 各3点 1) 1 2) 2 3) 1 4) 4 5) 2 6) 27) 1 8) 2 9) 3 10) 1 11) 1 12) 3 13) 3 14) 4 15) 2 16) 4 17) 3 18) 2 19) 3 20) 4 21) 1 22) 3 23) 3 24) 3 25) 2 26) 4 27) 3 28) 4 29) 3 30) 2 31) 1 32) 3 33) 4 34) 3 35) 3 36) 1 37) 1 38) 2 39) 4 40) 3 41) 3 42) 3 《 漢字問題B 》各4点 43) せんげつ 44) あに 45) ちゅうごくご 46) なら 47) くるま 48) おと 49) こえ 50) からだ 51) うご 52) いしゃ 解答例 《 記 述 問 題 A 》 各5点 53)(A) 地下鉄(B) 行きます 54)(A) くだもの (B) 何が 55)(A) 忘れ (B) しかられ 解答例 《 記 述 問 題 B 》 各5点 56) これはだれのかさですか。 57) 一週間に一回しかしません。 58) わたしが作ったケーキです。 59) 田中さんがけっこんしたことを知っていますか。 60) 歌手のように上手に ■ 聴解問題 各5点 《写真問題》《聴読解問題》 《 応答問題 》 《会話? 説明問題 》 1) 3 2) 2 3) 1 4) 3 5) 16) 4 7) 2 8) 4 9) 3 10) 4 11) 3 12) 2 13) 1 14) 3 15) 2 16) 3 17) 2 18) 2 19) 1 20) 2 21) 3 22) 2 23) 1 24) 3 25) 3 26) 1 27) 4 28) 1 29) 1 30) 3 31) 2 32) 4 33) 4 34) 2 35) 1 36) 3 37) 1 38) 3 39) 3 40) 2

JTEST考试攻略

JTEST考试EF级题型解析及备考攻略 11月JTEST考试在即,我根据在青岛华兴日语学校JTEST强化班授课经验和对考试研究为大家介绍下JTEST考试EF级题型解析及备考攻略 听力部分 1题型介绍 听力部分由4个大题,共40题,每题5分,总分200分。 2考试变化: 原有题型为 照片问题:5个小题 应答问题:15个小题, 会话问题:10个小题, 说明问题:10个小题; 从95回考试进行变革 照片问题:5个小题, 听读解问题:5个小题, 应答问题:15个小题, 会话说明问题:15个小题, 题型分析 1照片问题与以前的考题没有变化,根据一句问话选出正确答案,对于大部分考生来说,这个题型是比较拿分的。 2在原有题型的基础上增加了听读解,根据对话一边看图一边找答案,主要考察考生对于听力的理解和应变能力。 3应答问题是没有照片的,根据一句问话从3个选项中选出一个正确答案,主要考察学生对日语语感的把握和对基础知识的把握。 4会话说明问题把原有的会话问题和说明问题和到一个大题里面共计15题,主要对学生的综合知识,以及听力能力进行检验。 注意 4道听力大题的考试成绩都不能低于20%,每个单项低于20%的话总分即使达到了E级要求的350分或F要求的250分,也只有成绩认定,而没有等级证书认定,所以要求考生必须在保证20% 的前提下多多得分。 提高方法 那么如何提高自己的听力呢?我建议同学们在平日的日语学习中,背单词时多背句子,这样背单词同时既可以掌握基础文法又增加了语感;在掌握好文法的基础上,尽量多做听力练习,例如跟随磁带反复收听和朗读教材的单词、课文和课后练习题。预备考试时,反复去听JTEST每年真题听力。 正所谓冰冻三尺非一日之寒,只有平日进行大量的听力练习,才能在考试中立于不败之地。对于初学日语准备留学的同学来说,听力部分是一个难点,往往听力成绩决定你是否能及格,是否有

实用日本语检定考试(JTEST)CALL 教材的开发

实用日本语检定考试(JTEST)CALL 教材的开发

————————————————————————————————作者:————————————————————————————————日期:

实用日本语检定考试(JTEST)CALL 教材的开发-教师教育 论文 实用日本语检定考试(JTEST)CALL 教材的开发 ——《J.TEST考试E-F级练习30日》 文/夏玲雅 【摘要】随着网络技术逐渐渗透到我们日常生活的各个方面,基于网络的教学模式已成为教学模式改革和发展的趋势。本文主要针对笔者所任教的苏州健雄职业技术学院商务日语专业学生的实际情况,尝试开发了J-TEST的E-F级辅助练习多媒体教材,结合J-TEST的E-F级考试的官方具体要求,参照考试的结构,题型与内容,教材的主要内容包括基本词汇和语法项目篇、汉字篇、语法词汇篇、记述篇、读解篇、听解篇以及日本文化相关知识7部分。意在为包括本专业学生在内的有需要攻考J-TEST的E-F级的日语学习者提供一个能够自主学习,自主检测的网络学习平台。 关键词J-TEST;CALL教材;日语学习;考试 网络的教学模式是今后教学的发展方向,很多学校也开始对此逐渐重视起来。而在我们日语教学中,虽然通过网络有很多和日本、日语相关视频或者日语教学相关的一些练习资料,但是总体来说较杂,缺乏系统性,完整性,教师在利用这些资源的时候往往需要花很多时间去作筛选。笔者从事日语教育教学工作7年里,使用最多的教学工具还是PPT,把上课需要传授给学生的知识,笔者在日本攻读硕士期间,对多媒体日语教材的开发非常关注,也研修了与此相关的课程并参与实践,学习者反应效果良好。回国后更加致力于这方面的教材的研究与开发。于是在教授日语的过程中,笔者结合任教的商务日语班学生的学习要求,尝试着开

J.TEST第105回E-F真题及答案

第112回J.TEST 実用日本語検定実用日本語検定 (E(E--Fレベル)Fレベル) 正解とスクリプト正解とスクリプト ■ 読解?記述問題 《 文法語彙問題 》 《 読解問題 》 《 漢字問題A 》 各5点 各8点 各3点 1) 4 2) 3 3) 1 4) 2 5) 2 6) 1 7) 4 8) 3 9) 3 10) 1 11) 4 12) 1 13) 4 14) 3 15) 2 16) 3 17) 2 18) 3 19) 4 20) 4 21) 2 22) 1 23) 2 24) 1 25) 2 26) 3 27) 3 28) 4 29) 3 30) 4 31) 3 32) 4 33) 2 34) 4 35) 4 36) 3 37) 4 38) 1 39) 4 40) 3 41) 2 42) 3 《 漢字問題B 》各4点 43) とけい 44) ごまん 45) ふゆ 46) あいだ 47) した 48) みじか 49) しき 50) じゅうじ 51) ほか 52) かんが 解答例 《 記 述 問 題 A 》 各5点 53)(A) ある (B) 見た 54)(A) お好み焼き (B) 日本料理 55)(A) 飲ん (B) 良くなる 解答例 《 記 述 問 題 B 》 各5点 56) もう家に帰りました 57) 宿題のあと、電話で 58) 大きくて庭も広いです 59) 辞書で調べるようにしています 60) 作家によって作られた ■ 聴解問題 各5点 《写真問題》 《聴読解問題》 《 応答問題 》 《会話?説明問題》 1) 1 2) 4 3) 4 4) 3 5) 2 6) 3 7) 3 8) 1 9) 4 10) 2 11) 1 12) 3 13) 2 14) 1 15) 3 16) 2 17) 1 18) 2 19) 2 20) 3 21) 3 22) 2 23) 2 24) 1 25) 2 26) 2 27) 3 28) 3 29) 2 30) 4 31) 4 32) 2 33) 4 34) 2 35) 3 36) 1 37) 1 38) 3 39) 2 40) 4

2011年9月日语JTEST第98次真题

2011年9月日语JTEST考试E-F级(第98回) 1文法語彙問題 次の文の()に1?2?3?4の中からもっとも適当な言葉を入れてください。(1)「これは()のかさですか」 1なに2どれ3だれ4いくつ (2)すきなくだものは()です。 1かんごし2しゅくだい3ひこうき4みかん (3)山田さんは手()きれいです。 1が2と3を4の (4)ひとり()日本に来ました。 1へ2を3で4に (5)このりょうりはあまり()です。 1おいし2おいしい3おいしく4おいしくない (6)()で服をかいました。 1アパート2デパート3シャワー4スカート (7)ぼうしを()。 1きます2します3はきます4かぶります (8)昨日は会社()やすみました。 1へ2に3を4が (9)「映画を()まえにごはんを食べましょう」 1み2みて3みた4みる (10)「もっと大きい声()言ってください」 1は2を3で4に (11)「電気の()はどこですか」。 1スイッチ2スピーチ3ステーキ4スーツ (12)この野菜は体()いいです。 1へ2が3を4に (13)強い風で木が()。 1やぶれました2こわしました3たおしました4たおれました (14)冷たいものを()すぎて、おなかが痛くなりました。 1食べ2食べて3食べる4食べよう (15)この店では、先にお金を()なければなりません。 1はらい2はらう3はらわ4はらおう (16)「3日に1回、かならず部屋を()ようにしてください」 1そうじし2そうじした3そうじする4そうじすれ (17)あの人と前にあったことがありますが、名前が()。 1覚えません2忘れません3思い出せません4取りかえられません (18)リン「5時に研究室に()いいですか」 先生「いいですよ。来て下さい」 1はいけんしても2いらっしゃっても3うかがっても4めしあがっても(19)友達の結婚の()に絵をプレゼントしました。 1おいわい2おみまい3おつり4おまつり (20)タバコを止めることを妻()約束させられました。

JTEST EF级模拟试题

JTEST EF级模拟试题(一) 一,文法語彙 1)()ですか。—さんさいです。 1.いくら 2.いつか 3.おいくつ 4.いつ 2)きのうのてんきは()です。 1.さむくて 2.さむい 3.さむかった 4.さむいた 3)かれは私に()をあげました。 1.アイス 2.エレベーター 3.ニュース 4.プレゼント 4)なつやすみはあした()おわります。 1.から 2.を 3.に 4.で 5)机のうえにしんぶんが2()あります。 1.さつ 2.まい 3.ほん 4.たい 6)バナナは()です。 1.のみもの 2.くだもの 3.きもの 4.もの 7)このもんだいは先生()もわかりません。 1.に 2.を 3.と 4.より 8)これはもう()おわった本です。 1.読んだ 2.読んで 3.読み 4.読む 9)私は1000円しか()。 も 1.持ちます 2.持つ 3.持ちない 4.持ちません10)あいさんはテレビを()ながら食事をします。 1.見 2.見る 3.見た 4.見て せつめい 11)このことを( )说明してください。 1.ぜひ 2.ちゃんと 3.ちょうど 4.きゅうに 12)きのうあめが()そうです。 1.降り 2.降って 3.降った 4.降る 13)あした、友だちへ()に行きます。 みまめ 1.お見舞い 2.目に見 3.見 4.見方 14)お风吕に()。 いはい 1.入る 2.入る 3.みる 4.よむ 15)先生は私に()。 おし 1.教えてもらった 2.教えたまらって 3.教えてくれた 4.教えてあげた16)先生のはなしを()、あのことをします。 1.きいた 2.きいて 3.きく 4.きって 17)私は()わからない。 1.まっすぐ 2.たいへん 3.たくさん 4.よく

jtest试题

J.TEST Ⅰ文法語彙問題 次の文の()に1234の中から最も適当な言葉を入れてください。 1あさ、パンとたまご()食べました。 1に2を3の4が 2ゆうべは、電話()友達と話しました。 1で2の3に4を 3「あなたのかばんはどれですか。」「()です。」 1かばん2わたしの3これ4この 4田中「チンさんは学生ですか。」チン「いいえ、学生()」 1です2でした3でしょう4ではありません 5それは()辞書です。 1日本語と2日本語が3日本語を4日本語の 6先生「これは誰の本ですか。」学生「()」 1ありません2わかりません3そうです4いいです 7「いっしょに昼ごがんを食べませんか」「いいですね。そう()」 1しましょう2しません3しました4しませんでした 8「日本の生活はどうですか」「()です。」 1しろい2たかい3おいしい4たのしい 9シャツを()ました。 1すみ2こまり3ぬぎ4のり 10家から駅まで10分()ます 1かかり2とり3し4なり 11()ですから、この中に入らないでください。 1あぶな2あぶない3あぶなく4あぶなくて 12今週の日曜日に京都へ()たいです。 1行く2行かない3行き4行った 13弟は私()背が高いです。 1ほど2より3まで4から 14()の中に鍵が入っています。 1カレンダー2ノート3ポケット4ドア 15歌を()ながら歩きます 1歌う2歌って3歌い4歌った 16野菜は体()いいです。 1に2で3へ4が 17ここは禁煙席ですから、たばこを() 1吸ってもいいです2吸ってはいけません3吸わなければなり名船4吸わなくてもいいです18今いそがしいので、()しないでください。 1しゅっせき2しつれい3しょうかい4じゃま 19()まえに歯をみがきました。 1寝る2寝ます3寝て4寝た

JTEST记述问题解题要点与备考方法

JTEST记述问题解题要点与备考方法 作者:葱花老师来源:沪江网校评论:4 编辑点评:记述问题是JTEST考试中的得分难点,但是记述问题是扣分制,而不是加分制,只要句子中稍有错误就会被扣分。这就决定了我们造句时不要追求华丽的外表,句子造得越短、越简单越好。 本文相关应用 葱花老师: 沪江网校资深日语能力考讲师 所授网校课程:《JTEST A-D》《进阶日本语高级教程》《N1阅读专项》《N1听力基础》《大家的日本语听力教程》 葱花老师部落主页>>> 以下是葱花老师分享给大家的JTEST学习经验: 什么是记述问题? 记述部分分为两部分A和B,A是填空,B是用给出的三个词造句。 A部分的要求: (1)所填的词语长度和空的下划线的长度无关系。 (2)书写,语法有误的话扣分。 例: 問題:もっと練習___(A)_____ば、あのチームは____(B)_____ないだろう。答え: A.しなけれ B.勝て B部分的要求: (1)所给出的三个词都必须用上。

(2)有必要的话改变三个词语的顺序,变换词语的形式,使用其他词语均可。 (3)书写,语法有误的话扣分。 例: 問題:ぜんぜん、わかる、話 答え:彼の話は難しくてぜんぜん分からなかった. 记述问题是JTEST考试中的得分难点,但它的得分要领说起来也非常简单:力求正确、不求美。 因为记述问题是扣分制,而不是加分制,只要句子中稍有错误就会被扣分,而即使句子造得很长很复杂,也不会加分,反倒增加了失分的几率。这就决定了我们造句时不要追求华丽的外表,句子造得越短、越简单越好。 出题倾向及解题要点: 记述问题中常见的考点有:接续法、副词的呼应、句型的含义、惯用语等等。 例如: A部分: (95回91题)弟は新しいパソコンを欲しがっている。(考「~がる」的接续) (94回93题)この本は上級者向けなので、これから勉強を始める人にはおすすめできない。(考「~向け」的接续) (95回94题)我が社は技術力に関しては、B社に勝るとも劣らないと自負している。(考「に関して」的接续和惯用语「勝るとも劣らない」) B部分: (96回99题)野球場から人がぞろぞろと出てきはじめた。(1.どうやら→2.試合→3.終わる)参考答案:どうやら試合が終わったようだ。(考副词「どうやら」与推测语气的呼应) 可见,在做A部分题目时尤其要注意接续,包括:用言的活用、题干中所给助词与名词或动词的搭配、固定句型的接续形式等等。 而在做B部分时,由于题目限制了题干所给3个词语的顺序,同时题目中给出了上下文,看似增加了限制条件,但由于减少了3个词语排列组合的可能性,同时限定了语境,实际上是降低了难度。 因此,分析题目所给的3个词语的词性和排列顺序是重要的解题步骤。 例如: (96回96题)

J.TEST第124回E-F级真题

J.TEST E-F级124回真题 Ⅰ文法語彙問題 A 次の文の()に1.2.3.4の中から最も適当な言葉を入れてください。 (1)「りんごを2()ください」 1さつ2こ3ほん4ひき (2)きょうは、いつかです。あしたは( )です。 1なのか2ようか3よっか4むいか (3)きのう、図書館へ行きました。その図書館は、とても静か()。 1でした2なでした3ったです4いです (4)わたしの父は、銀行( )つとめています。 1を2が3に4へ (5)わたしは、()、が低いです。 1あし2て3せ4あたま (6)A:「この写真のかたは、()ですか」B:「わたしのおばです」1どう2どなた3どちら4どうやって(7)おととい、3時( )、木村さんに会いました。 1じゅう2ずつ3とき4ごろ (8)田村:「パクさんのくつは、どれですか」B:「いちばん( )です」1おおきいの2おおきい3おおきく4おおきさ (9)母( )作る料理は、おいしいです。 1を2は3が4で (10)友だちにくるまを( )、大阪へ行きました。 1よんで2かりて3おして4けして (11)A:「いすは、どうしますか」B:「いすは、( )ならべましょう」1まるい2まるく3まるくて4まるいの (12)「ここでたばこを( )ないでください」 1すって2すい3すう4すわ (13)「ここでは、左()をあるいてください」 1がわ2へん3あいだ4みぎ (14)A:「交番は、ここから遠いですか」B:「いいえ、()近いですよ」1むこう2まっすぐ3けっこう4みなみ (15)A:「もしもし、いま、何をしていますか」 B:「ちょうどいま、日本語を()ところです」 1勉強2勉強の3勉強している4勉強していました(16)田口:「()ですが、松本さんですか」松本:「ええ、そうです」1めずらしい2きびしい3ざんねん4しつれい (17)あしたまでに、大学の( )を出さなければなりません。 1スクリーン2カーテン3ガソリン4レポート (18)部長に、つまらない仕事を( )ました。 1手伝わされ2手伝われ3手伝い4手伝って (19)1時間待って、バスが( )来た。 1やっぱり2やっと3きっと4もうすぐ (20)A:「あしたの予定は? 」B:「10時にお客様と会う( )」1ことになっています2ことができます3ほうがいいです4ようになりますB 次の文のの意味に最も近いものを1.2.3.4の中から選んでください。 (21)わたしの部屋は、きたないです。 1せまい2ひろい3おおきくない4きれいじゃない

相关主题
文本预览
相关文档 最新文档