A historical project, the customer request to change IP, because the system is more remote, there is no source code, through the reverse compilation of IP written dead in the class, the reverse-compiled code can not be modified, after analysis of
Topic: Enter two binary trees A and B to determine whether B is a substructure.
For example, the two binary trees shown in the figure, because a part of the subtree structure and B is the same, so B is a substructure.
To find if there is a subtree
Topic Description
Operates the given two-fork tree and transforms it into a mirror of the source binary tree. Enter a description:
Binary tree Mirroring definition: source binary tree
8
/ \
6 10
/ \ / \
5 7 9 11
Mirror two-fork Tree
8
/ \
10 6
/
destruction of Java objects
Each object has a lifecycle, and when the object's lifecycle ends, the memory address assigned to the object is reclaimed.
what objects are considered garbage by the Java Virtual machine:
(1) object reference exceeds
1, to the JVM operation principle and the common configuration must have certain understanding.
2, familiar with the object-oriented design principles, master the common design patterns and application scenarios.
3, familiar with Oracle,mysql and
This program is written primarily to determine whether it is a folder, and whether it is a Java file. When programming attention to the use of member variables and local variables, I started by using local variables to recursion, but the value is 0,
The new online system discovery reported the following error
At Java.net.InetAddress.getLocalHost (inetaddress.java:1505) ~[na:1.8.0_92] at net.sf.ehcache.cache. (cache.java:214) ~[ehcache-2.7.4.jar:2.7.4] at
-----------Android Training, Java training, Java Learning Technology blog, look forward to communicating with you. ------------
I. Reflection of an array:
A the array with the same dimension and element type belongs to the same type, which has the
1,volatile
The variable it modifies does not retain a copy and accesses directly in the main memory.
In the Java memory model, there is main memory, and each thread has its own memory (for example, registers). For performance, a thread keeps a copy
private static Atomicinteger mysessionid= new Atomicinteger (-2); public static int Getmysessionid () {return mysessionid.decrementandget (); private static int mysessionid=-2; public static synchronized int Getmysessionid () {return
In the writing framework often need to scan Classpath specified package path with a certain annotation class, their own packaging into a tool class, for your reference. Source Code
Classpathresourcescanner.java is as follows:
Package
http://blog.csdn.net/zxycode007/article/details/6211538
Talk about the code generator before you say the template, what is called template, for example, you have seen the money order, you do not fill in the content is a template category
Speaking
Dimension: Encapsulates the width and height of a single object's components in a class.
Typically, the value of width and height is positive (if negative, the behavior of some methods defined by other objects is ambiguous).
Gets the width, height,
Work encountered this problem several times, feel the need to sum up, so with this article, this article is divided into three parts: Understanding the problem, analysis and solve the problem.
first, the question of understanding:
Let's begin by
> is the symbol bit of the right move symbol, X>>1 is the content of X to move to the right one, if the beginning is 1 to fill 1, is 0 responsibility to complement 0, ( The contents of x do not change). >>> is the right move without a sign bit, x>>>1
1. Socket communication in Java
A, blocking waiting
In Java socket communication and IO communication, blocking wait is a very important concept. When a program executes to block program code, such as Serversocket.accept (), Inputstream.read (), it
1. Annotations affecting the life cycle of the servlet: @PostConstruct and @predestroy@PostConstruct: The modified method runs when the server loads the servlet and is only called once by the server, similar to the init () method of the servlet.
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