Java Study Notes (1) Java Introduction

Source: Internet
Author: User

JavaIs a class (Class).ProgramAnd it is hard to specify that the root nodes of all classes areObjectAnd the rest are their child classes.

JavaOnly single inheritance is supported, that is, a class can only have one parent class.

JavaNot only is it an object-orientedProgramming LanguageIn addition to object data types, basic data types are also supported, such as integer, real, complex, and Boolean.

JavaThe programming interface of the language is supported.HTTPAndFTPAnd so onTCP/IPProtocol Class Library,JavaThe application can useURLThe address directly accesses objects on the network, just like accessing local objects.

JavaCompile and then explain the execution.

. Java File -- (Compilation) -->. Class File ( Also known as bytecode files / Virtual MachineCode ) -- (Java The loader will . Class File loading memory ) --- (Java The bytecode validator performs a security check on the security of the bytecode. ) ---> JAVA The interpreter interprets the execution bytecode.

JavaThe robustness of the language is embodied in :(1.

(2) Introduces the exception handling mechanism.

JavaSupports multithreading. To avoid system deadlocks caused by resource conflicts,JavaIntroduced synchronization keywordsSynchronizedTo specify that a method or object cannot be concurrently executed.

Process (Process): A process has its own memory space and system resources during execution. The memory data and status of each process are isolated from each other, and data exchange is completed through specific communication mechanisms, such as pipelines.

Thread (Thread): A thread is a lightweight process generated in the process. A thread shares a piece of memory space and a group of system resources during execution. Therefore, data can be directly exchanged between threads.

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.