Note: This article mainly records the process of solving the memory overflow problem rather than the specific problem.Recently in writing a search engine, using inverted index structure for document retrieval, the basic idea of saving an index is to
Broker modeEncapsulates a series of object interactions with a mediation object. The mediator makes the objects not need to explicitly reference each other, so that they are loosely coupled, and can independently change the interaction between
Java is a strongly typed programming language that shows that all the variables used in a Java program must be well-defined data types.Java data types can be categorized into basic data types and reference data types.Basic data type:Numeric type:
DirectoryJava Handling Exception modeThe role of ThrowThe role of throwsMethod principleExampleSummarizePersonal instances1.java Handling Exception ModeIn Java code, if an exception occurs, the JVM throws an exception object, causing the program
Summary of learning contents of textbookA. Input / outputInputStream with the OutputStream? concept of stream designFrom an application perspective, the data is fetched from the source, the input stream can be used, the data is written to the
20155335 Java Programming 6th Week of study summary# # Textbook Learning Content SummaryFirst, we need to understand the relationship between input and output, which I think is different from the input and output in C, and we first understand that
The phone interview asked the HashMap class to implement what method, only know is to search by the hash value, so find efficient, other ask Sanbuzhi, now to study.Want to study, but do not know where to start .... Sweat!!! Let's start with the
The project often uses the Java polymorphism this feature, before only a few fur, now found that it does not have a systematic understanding of it, want to re-comb their own base library.Read the introduction to the object of Java programming, the
The final keyword can be used to modify classes, methods, and variables. Each has a different.A, the Modified class (Class).1. The class cannot be inherited.2. The methods in the class are not overwritten, so the default is final.3, use: when
abstract class: AbstractionAbstract: Not specific, can not understand. Abstract class representation manifests itself.In the continuous extraction process, the common content of the method declaration extraction, but the method is not the same, no
Automatic type conversions Follow the following rules:
If the data type of the participating operation is different, it is converted to the same type, and then the operation is performed.
Conversions are performed in the direction of
The difference between break and continue:Break is the end of this layer loop or used in a switch statement to end the current case;Continue end this cyclefor (int i=0;iSystem.out.println (i+ "---------");Break}The first cycle is over;for (int
Hibernate query result Bar number setOriginal wording:Integer count = (integer) session.createquery (HQL). Uniqueresult ();Error: Java.lang.ClassCastException:java.lang.Long cannot is cast to Java.lang.IntegerReason:After upgrading from Hibernate 3.
Struts_ActionWildcard _ wildcard configuration, struts2action wildcard
Use wildcards to minimize configurations
However, we must abide by the principle of "configuration as agreed ".
Struts2.xml
1 2 5 6 7 8 9 10 11 12 13 /test. jsp 14 15 16
Mbatis _ reverse engineering, mbatis Reverse Engineering
Mybatis Reverse Engineering
What is reverse engineering?
Mybatis requires programmers to write their own SQL statements. mybatis provides reverse engineering and automatically generates
Session usage, session usage1. What is session?
Session: it is called "Session control" in computers, especially in network applications ". The Session object stores the attributes and configuration information required for a specific user Session.
Better use of JAVA thread pool and JAVA Thread Pool
This article describes the thread pool size parameters, creation of working threads, collection of Idle threads, use of blocked queues, task denial policies, and thread pool hooks. use, some
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