From a freshman self-taught Java has been two years, conscious already can independently, (in fact, far less), has been reading recently. About Java four kinds of reference types, I also just understand, hereby note!
Four levels of references
Thread priority-related properties for threads
Each thread has a priority, and in thread, the attributes corresponding to the priority are as follows:
/** * 线程的优先级属性 */private int priority;/** * 线程所能拥有的最大优先级. */public final static int MIN_PRIORITY =
Service Side PackageTCP;ImportJava.io.FileOutputStream;Importjava.io.IOException;ImportJava.io.InputStream;ImportJava.io.OutputStream;Importjava.net.InetSocketAddress;ImportJava.net.ServerSocket;ImportJava.net.Socket; Public classTcp_file_server {
Maven Project version number
Default version number: 1.0-snapshot The best practice is to contract the version to an unstable version if the release must be deleted;
Recommended version rule: Major version number. The minor version
62. Talk about your understanding of MyBatis?MyBatis is an open source project for Apache Ibatis, which was migrated to Google code by the Apache Software Foundation in 2010 and renamed MyBatis. Migrated to GitHub in November 2013.MyBatis is an
1. Gets the date class in the Ava.util package for the current time. Package test1; Import java.util.Date; Public class dateutils { publicstaticvoid main (string[] args) { New Date (); System.out.println (d); }}The
1. JsonutilImplement a string-to-object, object-to-string class, use scenario, Redis for Single sign-on using the methods provided by the Jackson package
learning without thinking is not the case, but thinking without learning is dangerous.I. Objects (object)1, the Machine model (program space), the actual problem solving problem model (problem space).2. We refer to the elements in the problem space
Suppose you now have a function f (x) = a + XThis function is not complete, such as f (1) = a + 1You have one question: How much is a?There are two ways to answer this questionThe first is called "Dynamic Scope", and the value of a is determined by
Thread priority-related properties for threadsEach thread has a priority, and in thread, the attributes corresponding to the priority are as follows:/** * 线程的优先级属性 */private int priority;/** * 线程所能拥有的最大优先级. */public final static int MIN_PRIORITY = 1;
Comments in Java about//TODO// TODO Auto-generated method stubIs that we write the class or inherit the interface automatically generated hints, can be left or not, but can prompt the reader this code is automatically generatedFind the method body
Dependent jar org.jsoup jsoup 1.8.3 Test:public static void Main (string[] args) {String ssss = " Test offline class questionnaire VR to work ";System.out.println (Jsoup.parse (SSSS). Getelementsbytag ("img"). Size (
Continue to follow the last "https://www.cnblogs.com/webor2006/p/9502507.html" of the 10 represents the byte analysis of code, as follows:And these bytes actually correspond to the information that it is:So the question is, ALOAD_0 is not mnemonic
1 /**2 * Enter characters to reverse the array output3 */4 ImportJava.util.Scanner;5 Public classinRESERVE6 {7 Public Static voidMain (string[] args)8 {9 reverse ();Ten } One Public Static voidreverse () { A -string[] arr
The General sort algorithm is a sort of array, and it uses random access methods. However, access to the list is inefficient. In fact, you can use merge sort to sort the list efficiently. The implementation of Java then is to simply transfer all the
Thread not secureFirst of all, for example, the thread is unsafe under what circumstances occur: For example, a variable can be accessed by multiple threads, and in the case of a large number of threads concurrently accessing this variable, the
ImageKnown Synchronize keywords are common solutions for solving concurrency problems, with the following three ways to use them:
The normal method is synchronized, and the lock is the current object.
Synchronizes a static method, which
Two ways to send post and get requests in Java1.URL2.httpclientThe first way:Send request in URL formThe second way:commons-httpclient-3.1.jar;Import Org.apache.commons.httpclient.httpclient;import
Construction Method: Literal Explanation: The method that executes synchronously when the object is constructed in new (the method name needs to be consistent with the class name). Function:1initialize a class member variable: eg:classA {intOne ;
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