address: http://blog.csdn.net/huang_xw/article/details/7318554
/*** @ Description: two threads (thread 1 and thread 2) access the same object's internal synchronous method Syn () and non-synchronous method nonsyn () * result: when thread 1
Mechanisms required for dynamic binding
1. Identify the object type during execution
2. Call the corresponding function
In addition to the final modifier, functions in Java use dynamic binding.
Of course, constructor is an exception,
Recently, I used Java to write a simple paging text editor. Although it is simple, it still implements some important basic functions. The introduction is as follows:
With the paging function, the file name can be displayed on the tab.
If
To process a flat text data import function, due to raw data problems, some fields have garbled characters and special characters, causing the exported data to be viewed in the text format, the separator/T in it, that is, the tab is mistaken. It is
Package util; public class bitoperator {public static void main (string [] ARGs) {system. out. println ("\ n shifts left by bit"); output ("123", 123); output ("123 2", 123> 2); system. out. println ("\ n shifts to the right by bit, while shifting
How can I obtain the IP address of a domain name in Java? The class that provides this function is called java.net. inetaddress. Assume that there is such a domain name, it uses a staticGetbyname to obtain an inetaddress again and then obtain the IP
The Java reflection mechanism means that any class in the running can know that there are many member functions and member variables in this class. For any variable, you can call these methods, including private methods, this kind of dynamic
The use of the jfilechooser class is very simple. It mainly sets attributes and uses file filters.
Import javax. swing. jfilechooser; public class filechooser {public static void main (string [] ARGs) {jfilechooser fc = new jfilechooser ("D:"); //
Static is the meaning of static. It is often used to modify internal classes, methods, and variables.
Static domain
Static modified variables have only one copy in each class. That is, all objects in this class share one variable, which belongs to
Record this question because one person on csdn asked the following question:
Why does the-xmx configuration not work? The problem is probably when top is used to view process resources, why does the content in the virt column not meet the
In fact, you don't need to talk about anything !!!
It should be that the equals in the object is the memory address for comparison.
If a class does not override the equals method, It inherits the equals method in the object.
Difference between =
Transferred from: http://polaris.blog.51cto.com/1146394/2736141-、java reflection mechanism the Java reflection mechanism is in the running state. For any class, all attributes and methods of this class can be obtained. For any object, can call any
Classes in binary format
When developers using the Java language compile their source code with a compiler, they usually do not have to worry about such details about the source code. However, in this series of articles, I will discuss many
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