Peer programming and code review are mentioned in extreme programming. Anyone who understands programming a little bit will agree. This also reflects the importance and necessity of code review. However, in the actual execution process, it is often difficult to execute the code
A little bit of work experience may not be correct, even if it is not correct.
Java list is just a container interface. Defining a list must be implemented using some implementation classes such as arraylist.
Several key points for using list:
① The add () method of list can only add objects and cannot add basic data types!
② List won't open up space by itself to copy the added object by adding (). It just saves the address of the object and searches
To improve development efficiency, you typically add some common templates to shortcut keys by:Window-prefrerences-java-editor-templatesCopy the code in the Apply application PackageCom.littlepage.server;Importjava.io.IOException;Importjavax.servlet.ServletException;ImportJavax.servlet.http.HttpServlet;Importjavax.servlet.http.HttpServletRequest;ImportJavax.servlet.http.HttpServletResponse; Public classQuic
This is a creation in
Article, where the information may have evolved or changed.
Note: The original text is from Go-wiki to go Code Review Comments
Go Code Review recommendations
This page collects common comments from the Go code
"generic pointer ". Operator *,
Operator->, operator ++, operator -- and other class templates to be overloaded.
4. functors: A behavior similar to a function, which can be used as a policy of an algorithm. Class with operator () reloaded
Or class template. Generally, function pointers can be regarded as narrow-sense imitation functions.
5. adapters: one is used to modify the container, function simulation, and iterator interfaces. For example: queue
ObjectiveGoing to school next semester, that is, September, to find an internship, now there are three months time. (but still playing Python every day.) )Set a review plan.1. Basic
Concurrency: Java concurrency programming combat
Sql:mysql, look at the book, Leetcode brush the question.
Design Patterns: Learn a common eight or nine of the line.
Tools that must be mastered:
Ma
First, the basic Java section (after all the technology to consider the review of technical points)1. Sorting problems in the array (the former is more likely to be written or tested)2. Object-Oriented understanding3. Set related issues, such as the difference between HashMap and Hashtable. Figuring out the characteristics of each set object is Europe.4. Multi-threaded start-up and the cause and solution of
This article provides a detailed overview of the Java technology topics in the threaded articleThe methods that are often used to write programs with multithreaded capabilities are:Run (), start (), Wait (), notify (), Notifyall (), sleep (), yield (), join ()There is also an important keyword: synchronizedThis article will explain the above content.A: Run () and start ()Example 1:public cla ThreadTest extends Thread{public void run(){for(int i=0;i{Sy
- >general->apperance->color Theme) found the color theme plugin settings interface, where you can choose your favorite theme according to their preferences.
Three ways to set the comment label @user in eclipse: First, add a-vmargs-duser.name=sun, Wu-kong in the Eclipse.ini in the Eclipse installation directory, and the second, through the menu window-> Preference, Java, code Style,
();}
8. when you expand the system view or system service, you should first create your own content for the system during creation, and then execute our operations, we should first destroy our contents and then execute the system destruction operation. For example, when the onCreate () function is used, super. onCreate () is called first to implement its own operations. When onDestroy () is used, the custom content is destroyed before super. onDestroy () is called ()
(Transferred from: http://wenku.baidu.com/view/af39b3164431b90d6c85c72f.html)Four, the fourth day of Android learning--java Basic ReviewThis is to learn the fourth day of Android, in the program has encountered some of the Java in the previous not commonly used knowledge points, hurriedly review review, lay the foundat
==33 ++y>0) does not grow can also be used as a bitwise operator, when an expression on either side of the operator is not a Boolean,, represents bitwise AND operation.We usually use0x0f to perform an operation with an integer to get the minimum 4 bit bits of the integer, for example, 0x31 0x0f results in 0x01.Note: This topic first said the similarities between the two, and the special points of and , and cited some classic examples to show that they understand thoroughly deep, practical e
the process of direct referencing (appeal code: Assigning a value to a static variable singleton=new singleTon (), performing a construction method, count1=1;count2= 1; Continue assigning values to static variables: Count1, count2=0)Based on class loading and parental delegation mode we get one of the following rules Code Execution Order: static variable, static initialization block) –> (variable, initial
the address of the next instruction
When you execute the local method, the value of the PC is undefined
2. Method Area:
Save the Loaded class information
Constant pool of type
field, method information
Method byte code
Usually associated with a permanent zone (Perm)
3. Heap Memory:
and program development is closely related
Application system objects are saved in the
the connection does not do anything will cause unnecessary thread overhead, of course, can be improved through the thread pool mechanism.method is suitable for a small and fixed number of connections
Aio:
Asynchronous non-blocking, the server implementation mode for a valid request for a thread, the client I/O requests are completed by the OS before notifying the server application to start the thread for processing.The schema is used for a number of connections and for long conne
, you have to install the JDK, the URL is: http://www.oracle.com/technetwork/java/javase/downloads/ jdk8-downloads-2133151.html, download the installation, the current version is: Jdk8u40.Three main features of the 4.Java operating environment:The load code (completed by the ClassLoader-class loader)---> Code checksum
little sugar
Milk tea: boil hot water --> Add milk tea powder for brewing --> Add drinks to the cup --> add coconut/Pearl
It is not difficult to find that, in the process of beverage preparation, ① boiling water, ③ pouring a drink into the cup is a duplicate of work, and the preparation of which beverage is the same, that is, repeat work, we can set it as a universal operation.
We only need to care about steps 2 and 4.
As the four steps are involved in beverage preparation, we can abstract it i
JavaSE review diary: java package mechanism, javasejava
This is the first file named JavaSE_01.java. I declare an m1 () method in this file. Through the package mechanism, I will access the content in this file in another folder, specifically accessing a class file generated by this file;Package com. jaovo. webTeah. db;/** Ja
How to Review your code
The reason for writing this blog post is that the code you write is often reworked and the delivery date of the delay project. The reasons for project delay are summarized as follows:
1. If you are not fully familiar with the requirement interaction details, such as setting different order status changes based on different channels-Timeout
ObjectiveReviewing the Java modifiers and the string class in the previous article, this article looks back at the three main features of Java: Encapsulation, inheritance, polymorphism.Encapsulate what is encapsulated
In the object-oriented programming approach, encapsulation refers to a method of wrapping and hiding the implementation details of an abstract function interface.
Encapsulation ca
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.