1. What does thread safety mean? is the servlet thread-safe?A: If your code is in a process where more than one thread is running at the same time, these threads may run this code at the same time. If the result of each run is the same as the single-
The Vector class provides the ability to implement a growing array, and as more elements are added to it, the array becomes larger. After you delete some elements, the array becomes smaller. Vector has three constructors, public vector (Int.
Mainly divided into collection and map,collection. Gets the saved object reference using the index, which we can think of as an array-like class, while map stores the object as a key-value pair, and each object has a key value corresponding to it
The volatile modifier in Java is a special mechanism for ensuring the interaction between different threads. When One thread modifies a volatile variable, another thread can see the change. The first thread notifies the second thread that a variable
Java.lang.IllegalStateException:The content of the adapter have changed but ListView do not receive a notification. Make sure the content of your adapter are not modified from a background thread, but only from the UI thread. ... The ListView
I. The role of intermediary segregationProxy mode, first contact with it, is in learning. NET time to read a book, called "Big Talk design mode", has been nearly three years now. I believe that the students who have read this book, all remember the
How do I dynamically view the capacity of ArrayList?Among the methods provided by ArrayList, there are three methods:Size ()--Returns the number of elements in the current list;TrimToSize ()--Adjusts the current ArrayList capacity to the current
Java a lot of features to understand the almost, such as multi-threading, Io, collection class and so on, but did not summarize, today happened to use the annotation, so a little summary of it.
To use annotation first to understand the
Java garbage collection mechanism (4)
Old generation (based on the serial collector):Tagged-----compressFrom for notes (Wiz)Java garbage collection mechanism (4)
Class Loader:The class loader (ClassLoader) is used to load the class bytecode into a Java virtual machine. In general, Java virtual machines use Java classes in the following way: Java source files are converted to Java bytecode files (. class
Data dependenciesIf two operations access the same variable, and one of the two operations is a write operation, there is a data dependency between the two operations. The following three types of data dependencies are:
Name
Java Multithreading-MergingThe meaning of a thread merge is that several parallel threads are merged into one single thread execution, which is applied when one of the threads must wait for the other thread to finish executingExample: Existing a
TomcatIntroduction:Development language such as: PHP, you can use the Smarty framework.The other most popular framework is the MVC framework: DataBussiness BusinessPresentation ShowAnd like this language that can use the framework, especially for
Now that we've learned how to define properties, dependencies, and how to run ant, we'll learn how to use ant to compile Java source code and generate jar files.Compiling source codeBecause Ant's primary goal is to build Java applications, it has
MAPMap is used to hold data for a specific mapping, so there are two sets of values stored in the map collection, one set of values to hold the key in the map, and the other set of values to hold the Value,key and value in the map can be any type of
Java reflection comprehension and Java reflection ComprehensionEffect of reflection: 1. runtime check class structure 2. change the field value of the class during runtime. 3. method preparation for calling classes: Class: A list of classes for each
Struts2 type conversionIn struts development, objects must be given the get method.
Struts type conversion
LWhy type conversion in Struts2?
HTML form data collection --> submit form --> Action
The underlying layer relies on HTTP to transmit data,
Java design pattern-compound Pattern 2Next, the duck Ming example: Java design pattern-one of the composite patternIn the above article, we have implemented the combination of the modifier mode adapter mode factory mode, and now we need to make
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