advantages of the Java platformOfficially released in 1996 by Sun (now acquired by Oracle) is a technological revolution in the Internet.Cross-platformThe so-called platform refers to the program running software and hardware combination, most of the platform includes hardware and operating system two parts. The Java platform (Java Platform) consists of two parts:Java Virtual Machine(Java Virtual machine) andJava Application Interface(Java API). Any Java program, on any CPU, operating system, and Java compiler, will produce the same running results. The platform-agnostic nature of Java refers to:write applications that can run on different hardware and software platforms without any modificationsMultithreadingExample: The development of an online shopping automatic mail notification program, when the user clicks the "Submit" button to confirm the order, on the one hand to display information prompts the user order has been confirmed, on the one hand should be automatically sent to the user an e-mail. If it is a single-threaded mode, you need to wait for the message to be sent, and when the prompt message is displayed, the user may have to wait a long time to see the confirmation message because the message is sent relatively slowly, and the interface response performance is not very good. If it is multi-threaded, you can send a notification message on the side and display the prompt message so that the corresponding performance of the interface will improve a lot. Multithreading in Java I call it "Beautiful multi-threading”。
Basic Java Knowledge
**
Data type
**
The Java language defines eight data types, similar to other languages, and learning a language in other languages is very studious.
Process Control Statements
If it's like any other statement,
The FOR Loop statement is familiar.
Java AnnotationsIn the Java language, annotations havesingle-line comment、Multi-line comments、Document CommentsThree kinds, the following blog is written in detail. http://gyhgc.iteye.com/blog/225039
**
The main thing about Java is not this knowledge, but its powerful object-oriented, powerful encapsulation class, powerful network programming, and a variety of frameworks.
**
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Java------Basics