Java------Basics

Source: Internet
Author: User

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

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.