java code review checklist

Want to know java code review checklist? we have a huge selection of java code review checklist information on alibabacloud.com

Java Basics Review Notes series four

[] A = new int[]; it is wrong to: int[] A = new int[23]; Be sure to allocate space.Static initialization, when the array is defined, allocates space and assigns values.4, public static void main (string[] args) How to understand? String[] args, after all, is just an array. We can print it out. System.exit (-1); Indicates the system exits. -1 indicates an abnormal exit. 0 indicates normal exit.The problem is that the type of the string is entered. How do we convert string types to some of the bas

Java Review Summary 2

method, always used, even if the definition does not add the public abstract modifier, the system will automatically addUsing interfaces:A class can implement one or more interfaces that implement an interface using the Implements keyword. A class in Java can inherit only one parent class.is inflexible and can be supplemented by implementing multiple interfaces.If you want to inherit the parent class, the inherited parent class must precede the imple

Android code review tool-Use of lint Tool

Android code review tool-Use of lint Tool Reprinted please famous Source: http://blog.csdn.net/lijunhuayc After so long, I don't know what the lint tool is doing for android. Although I can see it under the android tools Project right-click eclipse every time, what can I do ~ I am ashamed to be an android player ~~~~~ Well, since I have never used it, I have seen it in the past few days and I know what s

Code review best practices

The article is reproduced from:Open source Chinese communityHttp://www.oschina.net Code review can help improve code quality and avoid bugs caused by code habits. The points listed below should serve as guidance for most code reviews. For

Summary of Java Access control review

management;2) For a Java source code file, there can be only one public class if there is a public class, and the source code file must have exactly the same name as the public class, and if there are other classes, these classes are not visible outside the package. If the source code file does not have a public class

Review in-depth understanding of Java object-oriented programming

Review in-depth understanding of Java object-oriented programming A class is an abstract concept in which an object is a concrete representation of a class and is a concrete concept. There is a class first, and then the object is generated by the class. The object is also called an instance (Instance). A class consists of two components: properties and methods. Attributes are generally represented by

A review of the Java object-oriented approach

1.1 Review of methods1.1.1 Case Code One:package com.itheima_01;/* * 需求:定义一个方法求两个数的和,并在主方法中调用 * * 方法:类中的一段具有特定功能的程序,提高了代码的复用性和可维护性 * 定义格式: * public static 返回值类型(没有返回值写void) 方法名(参数类型 参数名,参数类型 参数名2) {//形参 * 方法体; * } * 调用方式: * 有明确返回值类型: * 赋值调用,将方法的返回值赋值给一个变量 * 输出调用,使用输出语句直接输出方法的返回值 * 直接调用,没法获取方法的返回值 * 没有明确返回值类型: * 直接调用 * 方法重载:在一个类中有多个重名的方法,这些方法参数不同,和返回值无关 * * 注意: * 形参:方法声明的变量,只能是变量,接收方法调用时传递进来的数据 * 实参:调用方法时传递的

[Java Basics Review] Tomact and HTTP section summary.

Protocol/version Status codeExample: http/1.1 304 not ModifiedStatus code:1XX: In Request2XX: Request Response CompleteCommon 200 Response success3XX: Further browser operation is requiredCommon Status Codes:304: The file does not change, please look for the cache302: Still need to turn4XX: User Operation error404: The resource found does not exist5XX: Server Error500: Server ErrorResponse headerCommon response HeadersLocation:http://www.augmentum.co

Java Network Programming Learning A-round _01_ target and basic review

A. A-round target Review the basics of network programming, focus on learning the TCP three handshake four waves, and possible anomalies. Recalling Socket programming, for many years did not write (Chao) over the relevant code. Re-learning NIO, previously learned the basic forgotten, after all, has never been used in the project. Learn Netty, learn basic usage, write a simple project pr

Java Programming Fundamentals review-------Chapter II

First, identifiersNaming rules for identifiers in Java:Consists of numbers, letters, underscores, and $ symbols; cannot start with a number; it cannot be a Java keyword.Note: Do not use the $ named identifier. In practice, $ is used only in the source code generated automatically by the machine. Second, the key word1.Java All the keywords are lowercase;2. Literal

Java Programming Basics Review notes first unit

Java Language Programming Basics notes1.Several well-known languagesCOBOL: Business ApplicationsFORTRAN: Mathematical operationsBASIC: Easy to learn and useVisual Basic,delphi: Graphical user interfaceC: assembly language of powerful features and ease of learning, portabilityC + +: System softwareC#:.netJava: Internet Applications2.Java language Specification: JAVA.SUN.COM/DOCS/BOOKS/JLS technical definitio

The Java Part review question

directly without having to write large amounts of code in native JavaScript statements. Achieve consistent results across different browsersWrite down the JavaScript code that verifies that the content entered in the HTML text box is all numeric.What is the difference between XHTML and HTML?HTML is a basic Web page design language, XHTML is an XML-based labeling languageThe most important differences are:X

Review of Java Knowledge (IV.)

Recently ready to move, but also to review the basic knowledge. After a year, the front just contact with the Springboot can only be released first. Just review what you have listed.the elements in Set cannot be duplicated , So what is the way to distinguish between duplicates or not? is to use == or is equals ()? What difference do they have ? ? with contains to distinguish whether there are duplicate obj

Exception handling in the review of Java basic knowledge

-parametric construction method Super(); } Public Usernotfoundexception (String msg) { // There is a constructor method Super(msg) ;custom exceptions are used in two ways: Violation of business logic: Public void F1 ()throws usernotfoundexception{ if(condition not satisfied) { Throw usernotfoundexception (' condition not satisfied '); }}Try--catch () Capture output: Public void F2 () { try{ // business code }catc

Java review Summary 2 static method

Java review Summary 2 static methodStatic MethodLike static variables, we can also use static methods, called static methods or class methods.In fact, the main method we have been writing is the static method.Static members of the same type can be called directly in static methods, but non-static members cannot be called directly.To call non-static variables in a static method, you can create a Class Object

Java Review Note 11--stack&heap

through such as int a = 3; Long B = 255L; the form to be defined, called an automatic variable. It is worth noting that the automatic variable is a literal value, not an instance of a class, that is not a reference to a class, there is no class here. such as int a = 3; Here A is a reference to the int type, pointing to the literal value of 3. The data of these literals, due to the size of the known, the lifetime of the known (these values are fixed in a program block, the program block exits,

JAVA SE Basics Review-Basic program design (1)

1. Java Basic Data typeint 4 max 0x7fffffff 2147483647=2 31 square-1 first bit symbol bit minimum -2147483648 0x80000000 complement store first constant other bit reverse plus 1Short 2 max 2^15-1 32767 min -2^15-32768Long 8 maximum 2^63-1 minimum value -2^63BYTE 1 max 2^7-1 127 min -2^7-128Float 4 byte format saved in memory seee eeee emmm MMMM MMMM MMMM MMMM MMMMS represents the sign bit, 1 is negative, 0 is positiveThe power of E offset 127, binary

Java review--Multithreading basics

multithreading will affect each other, but the thread switching is less than the process switching resource.4) The internal data and state of multiple processes are completely independent, and multithreading is a set of system resources that share a piece of memory space, which can affect each other.5) The data of the thread itself is usually only the register data, and the stack used by the program when it executes, so that the thread's switchover is less than the switching burden of the proce

Java Basics Review

A core of the Java language:JDK, Java Development Kits---for developersJRE, Java Runtime Environment---serverJava Virtual machine---(CPU with byte-code instruction)---*.classJava compiler---bytecode---------the virtual machine runsGarbage collection mechanismpublic class ... {int a = 1;}C + + garbage collection run by

Java Related Knowledge Review

1, HTTP access mode:GET, POST, HEAD, DELETE, TRACE, PUT, OPTIONSHead indicates the query header information, the server returns the file type, length, last modified time and other information, this method is seldom used.Get methods are commonly used to query information, and submit data cannot exceed 256 characters (the total URL length cannot exceed 255 characters). The content of the query submitted by Java is displayed in the browser address bar.Po

Total Pages: 13 1 .... 6 7 8 9 10 .... 13 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.