1.2017-05-05 Written test1. Error and Exception exceptionsError indicates a critical error that is close to the program's inability to recover, such as a memory overflow and a dynamic link failure. If you encounter this exception, in addition to the
1.java compile and run process---can draw detailed2.JDK, JRE, JVM three relationships3.8 Basic types and range of values--complement introduction https://wenku.baidu.com/view/d17dd4ba1a37f111f1855b10.html4. Conversions between basic types5.switch
java Generic erase :What is a generic wipe?First look at what generics are. My personal understanding: Because the collection can store arbitrary types of objects. However, once the object type stored in the collection is determined, it is not
Encoding of the file
Packagecn.test;Importjava.io.UnsupportedEncodingException; Public classDEMO15 { Public Static voidMain (string[] args)throwsunsupportedencodingexception {String str= "Hello ABC123"; byte[] B1 = Str.getbytes ();//Convert to
In the recent interview often asked about the JVM and memory allocation problems, I think it is necessary to learn to summarize the next ~ ~ ~One, Java memory areaIn Java, the virtual machine automates memory management, which divides the memory it
Reprint Please specify source: http://blog.csdn.net/lhy_ycu/article/details/39807741Iterator mode (Iterator): Provides a way to access individual elements in an aggregated object in a sequential manner without exposing their internal representations.
Application Scenarios for Adorner mode:1, need to extend the functionality of a class.2, dynamic for an object to add functionality, but also can be dynamically revoked. (Inheritance cannot do this, the inherited functionality is static and cannot
SetHashSetFeatures: elements are unique, but unordered.How to ensure the uniqueness of the element (analysis source)?with simple analysis, we know that the HashSet collection guarantees that the uniqueness of the element is related to the Add ()
Inheritance, encapsulation, polymorphism, abstraction is the four basic concepts of object-oriented programming, in which encapsulation is important, because from the beginning of learning Java, we basically touch the encapsulation, because all the
In the dynamic agent mechanism of Java, there are two important classes. One is Invocationhandler and the other is proxy.
invocationhandler: Each dynamic proxy class must implement the Invocationhandler interface, and each instance of the proxy
Api:Java.lang.Thread
static void sleep (long Millis) sleeps for the given number of milliseconds.
The thread (Runnable target) constructs a new thread that invokes the run () method for the given target.
void Start () starts this
The transfer from: http://blog.csdn.net/u010011371/article/details/50749954Very good piece of article, suitable for my this small white, convenient later use.have been using the JDK1.8 version, now to replace the JDK1.7! See a lot of online do not
Write in frontThere are 23 types of Java design patterns, although I don't count them carefully. Singleton mode, as if it is necessary in common Java projects, such as rice is absolutely indispensable to rice, no problem. Here's your understanding,
I. Object-oriented thought design principles 1. Principle of single responsibilityIn fact, developers often say "high cohesion, low coupling", that is, each class should have only one responsibility, external can only provide a function, and the
Title: All numbers in an array of length n are within the range of 0 to n-1.Some of the numbers in the array are repeated, but I don't know how many numbers are repeated. And I don't know the number of times each number repeats. Please find a random
Public list UnZip (string pathstring, String zippathstring) {Long startTime = System.currenttimemillis ();list list = new arraylist<> ();try {Charset Charset = Charset.forname ("GBK");Zipinputstream Zin = new Zipinputstream (New FileInputStream
MVC Framework and instance (Supplement), supplemented by mvc Framework instances
This article is a supplement to the MVC Framework and examples (http://www.cnblogs.com/justmaomao/p/6739065.html)
The following is a brief introduction to simple
Kafka java Production and Consumption program demo, kafkademo
Kafka is a message system with a huge throughput. It is written in scala and is different from the production and consumption of common messages. It has written a demo program for your
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