Recently, in a systematic review of the knowledge of Java virtual machines, there is an interesting question: What is the type of Boolean in virtual machines? To answer this question, we look at the JDK source code is not able to solve the source code, we must go deep into the class file to solve the problem. So he gav
practice when you are doing the project you can be very skilled in writing the code you want. 2, ask more people, more with the small partners to discussLearning process encountered will not be the problem, first of all, do not rush to ask the teacher, so even if you get the correct answer, later in other places encountered the same problem or do not know how to solve! Oneself first want how to solve, review
writer:bysocket (mud and brick pulp carpenter) Micro-Blog: Bysocket Watercress: Bysocket FaceBook: Bysocket Twitter: Bysocket Remember Java source code is set to start looking, wrote a series of related articles, received a good evaluation. Thank you, readers. I will still read the old writing to the old , and vivid image of the writing to experience. This is still a diagram , I study io this piece. the m
The first day of the new Year, for Programer, compared to the usual is not much different, the code is still knocking. Do a day of keyboard, not necessarily have any brilliant achievements (in fact, it seems to have been this/(ㄒoㄒ)/~~), but was once stuck in the problem again stumbled and then tangled to solve, by the way to review a bit. The problem is that the Struts2 tags and JSP's
automate Tests of building maintainable Software-java Chapter
Keep the bar Green to Keep of the code clean.
-the JUnit Motto
guideline:•
Automate TestsFor your codebase.
do this by
writing automated tests using a test framework.
this improves maintainability because automated testing makes development
predictable and less risky.
Motivation
automated testing makes testing repeatableJust like other
listed, not the cause. Write down all the symptoms that can be observed, whether it's exception handling or error code, even if it's just an abnormal behavior. You can use a text editor or Whiteboard, but it's important that you take notes on every step of the diagnostic process. Separate observations from assumptions help ensure that you do not exclude or ignore potential causes. And most of the time, listing more symptoms will narrow down the possi
PMD 5.7.0 was released. PMD is a Java program code checker that is released using the BSD protocol. The tool can check whether the Java code contains unused variables, contains empty fetch blocks, contains unnecessary objects, and so on. The software is powerful and highly efficient, and is a good helper for
Assembling beans through Java code? In the case of explicit assembly, there are two options: Java and XML configuration, which first describes how Java is configured.2.3.1 Creating a Configuration classFirst review the previous chapter of the configuration content:@Configura
Check the java source code of the set data structure.
You can see a question on the Internet:
A set of strings. The format is as follows:. Merging a set whose intersection is not empty requires that there be no intersection between the merged sets. For example, the preceding example should be output.
(1) Describe your solution to this problem;
(2) provides the main processing procedures, algorithms, and
your own needs (before defining the template rule description below this page):After you submit your review, you can see the audit status of the template list and template below this page:Then click on "My Data" and click on "interface" in the SMS API service:The invocation instructions for the interface are all in this page and need to follow the rules here to invoke the API:After the SMS template application can use this API, the following shows ho
three rules, if you do something like this for the second time, you'll be tired of doing similar things, and the third time doing something like this is going to be reconstructed. (Charm, three refactoring).Refactoring is needed when we add new features, which can help us understand the previous code more deeply.Refactoring when we fix bugs can help us to better understand the code and find problems or bug
Java MySQL database and query for content
Recently used the framework to do a few projects, feeling that the bottom of the things a bit forgotten, write a JDBC Simple connection code to familiarize yourself with the review, but also hope that the new contact to help the novice. This is also my first essay, nonsense not much to say, directly on the
: * Date Author Version discription *-----------------------------------------------------------------------------------* 2014-5-
GX 1.0 1.0 * Why What is modified:
4, after writing a good class content, in the construction project process to join the Auxiliary JUnit test package Junit.jar, but also to import the database connection Mysq-connector-java-5.1.7-bin.jar Sqljdbc.jar, So that you can connect to the database;
5. After all the work is
See a topic on the Internet:Given a collection of strings, in the formof:. Requires merging a collection where the intersection is not empty, requiring no overlap between the completed collections, for example, the above example should be output.
(1) Please describe your idea of solving this problem;
(2) give the main processing flow, algorithm, and the complexity of the algorithm;
(3) Please describe the possible improvements.
One solution is to use and check the set, (the
found that the problem should be String.charat () above, the code is as follows:public char charAt (int index) { if (Index There are two judgments that are very time-consuming, and we change to the following codeif (strs.length==0) return ""; String prefix =strs[0];for (int i = 1;ibecomes the 2ms, sure enough the problem is here, if we do not use the ToCharArray () method should be 1ms, which shows that our ideas and algorith
Workflow Module---------------------------------------------------------------------------------------------------------- 1. Model Management: Web Online process designer, preview process XML, export XML, deployment process2. Process management: Import and export process resource file, view flowchart, reflect process model based on process instance, activate suspend3. Running Process: View process information, current task node, current flowchart, void suspend process, assign to-do person4. Hist
generation Service, we can understand the various ID generation rules, the problem and disadvantage of zookeeper and Redis distributed lock under high concurrency, the mainstream ID generation scheme, the NTP time callback problem. Finally, we will carry out the distributed Unified ID Generation Service Architecture design ideasThe 8th chapter of the course summaryThis chapter takes you to review the focus of the course, and finally wishes the small
Java Open source Fresh e-commerce platform-Technical solutions and documentation download (source code can be downloaded)Description: Any good project should have good documentation and design options, including requirements documentation, summary design, detailed design, test cases, acceptance reports, etc., similar to the following diagram:There are several administrative domains:1. Development domain.2.
Just published a Java send e-mail, before really did not notice, Commons so many common items, ashamed, until now review, to learn really too much, or lack of real learning ability ...Commons-fileupload.jar and commons-io.jar;http://commons.apache.org/are used here.This is a Web project, so the first to create a new JSP under the Webroot, in fact, directly with the index.jsp on the line; The following is th
Java Open source Fresh e-commerce platform-member points system design and architecture (source code can be downloaded)Note: The Internet Platform Integration system is mainly used to motivate and repay users in the platform of consumer behavior and activity behavior, a good integration system can improve the user's stickiness and active.The necessity of designing integral system of Internet PlatformThe int
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.