When you first started using Eclipse's debug, will only F5 F6 F7 F8, and even F7 are not very engaged in understanding how to use, when the capital is shallow, can not touch the need for complex debug code, slowly work deeply, the scene to touch more, you need a variety of debug techniques to improve the positioning of bug efficiency, Before looking for help to check the problem, see him open a variety of Windows debug all kinds of slip is envy envy h
. Depending on the depth of the stack, the main use of this feature is that all variable states can quickly return to the way the method starts executing, and then you can do it over and over again, so that you can debug multiple times in your area of interest, but there are some side effects during execution. For example, the data inserted into the database can not be deleted!9. Distribution filteringWhen we enter the (F5) method, we can also access its external libraries (such as
throw an exception without pre-creating an exception. The real cost is to create the exception.Fortunately, good programming habits have taught us that you should not throw an exception 3,721 or so.Exceptions are designed for exceptional situations and should be kept in mind when used.Android Optimization Tips:1, the amount of data hit when possible to use lazy page loading2, frequently used data is best to cache, to avoid multiple loading3, frequently used pictures, try to load the first time
Document directory
1. Get Factory
2. Obtain the Builder
3. parse to Document Object
1. Get Factory
2. Get parser
3. Start Parsing
Two XML parsing techniques in Java: Dom and sax target files: D:/meno. xml
Dom parsing steps: 1. Get factory documentbuilderfactory builderfactory = documentbuilderfactory. newinstance ();
2. Obtain Builder = builderfactory. newdocumentbuilder ();
3. parse it into the Doc
Common techniques for processing JSON data in java
public static String[] getStringArray4Json(String jsonString)...{ JSONArray jsonArray = JSONArray.fromObject(jsonString); String[] stringArray = new String[jsonArray.size()]; for( int i = 0 ; i stringArray[i] = jsonArray.getString(i); } return stringArray; } public static Long[] getLongArray4J
Extract information and statistics, sortThe task is to preprocess the corpus and extract useful information and statistics on the answers and responses of 1000 questions.First, analyze the text content, format, and think about how to extract. There are three types of answer, comment, and vote, so the file type is determined at the beginning based on the first few words Mr. Foo.Then constructs the object and the method according to the demand, and constructs the object list to store the extracted
deployed with EJB technology can be limited to specific platforms. EJB (Enterprise JavaBean) is part of the Java EE, which defines a standard for developing component-based enterprise multi-application applications. Features include network service support and core development tools (SDKs). In Java EE, Enterprise Java Beans (EJB) is called
be, only with NIO, can support a lot of connection and concurrency, local through NIO to do socket connection test , 100 terminals simultaneously request a thread of the server, the normal Web application is the first file is not sent complete, the second request either wait, either timeout, or directly deny the connection, change to NIO, then 100 requests can be connected to the server side, the service side only need 1 threads to process the data can , to pass a lot of data to these connectio
Today just opened a blog, hope it accompany me to grow together.The next time to complete the small project of the Java chat. Today, we have a brief look at the technical content that needs to be used.1. To save the chat data, you need to use the database2. To receive and send messages, you need to use the network3. Maintain network connection, need to use thread4. The chat will also need to have an interfaceThe above is a rough technical content, but
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:
[email protected]
and provide relevant evidence. A staff member will contact you within 5 working days.