Introduction to Java

Source: Internet
Author: User

Today is 2018-07-31, I was in college for the first time in the era of Big data, first review of the Java Basics learned before, is not only a summary of the Java aspects of their previous learning, but also for the future review to provide a reference bar.

  1. Java Brief

Introduced in 1995 by SUN, Java is now the preferred language for servers and the underlying language for big data (the base language). is cross-platform (which can be run on any operating system). Jvm--java Virtual Machine (like a person to a different country to play, need to find a translator JVM, each country has a translator JVM) Java programs are able to cross the platform because of the JVM. Application Scenario: The program is not directly to the operating system but to JVM,JVM first translated, translated into the current operating system can understand the language. ---JVM is not a cross-platform.(Note: The JAVA language is cross-platform, but the JVM is not cross-platform)2. Technical StructureJavase---java standards Edition---Java Standard Edition/Basic edition. is the foundation of the Java technology architecture. Java Java Edition---Java Enterprise Edition, which is used in the development of the team in the enterprise---. Javame---java micro Edition---Java mini-version, which is provided for the embedding of some small electrons. The JDK---Java Development Kit---Java Development Kit, provides basic tools for the development of Java programs---includes a toolkit + JRE. The JRE---Java Runtime environment---the Java Run-time environment to provide an environment for the operation of Java programs---contains the JVM + core class library. Jvm--java Virtual Machine---Java VM is a prerequisite for Java programs to cross the platform. Oak---oak JDK1.0 (only more than 300 classes and interfaces)->jdk1.1-JDK1.2 (formally to glory, there are more than 1000 classes and interfaces, the network has also begun to develop, applet-swing)->jdk1.3->JD K1.4->jdk1.5/jdk5.0 (added a lot of features)->jdk1.6/jdk6->jdk1.7/jdk7.0->jdk1.8->jdk9/ JDK17.9 (new modular, late, not available on the market)->jdk10/jdk18.3->jdk11/jdk18.9 extension: Lts-long time servicewww.oracle.com Download JDKNote: Do not appear in the installation path space and Chinese, the installation of the JRE will be closed on the line, because there is a JRE in the JDK. Translate the program into a language that the computer can understand---compiling a Java file generates a class file---bytecode file (for the computer) after compilation: 1. The program needs a portal to run---The main function 2.class file name and class name correspond, At run time to write the class file name 3. Classes that are restricted by public are called common classes, and public classes require the same class name as the Java file name. Automatically generate packages (the folders that are automatically generated when the package is compiled): javac-d f://Demo.java run: Java CN.TEDU.DE.DEMO environment variable: Specifies the value of the specified parameter to the current operating system. See installation of notebook software. A java_home (JDK installation directory), double-clicking on the front of the path (%java_home%\bin;) can be used normally under the F-disk.Key WordsThere is a special meaning in Java. So far altogether are 53 keywords---2 keywords are not used: Const/goto---reserved words.Note: The keywords are all lowercase. identifiersThe name of the program customizationnaming rulesComposed of letters (basic characters of common language), numbers, _, $ (but reduced use of $) Although Java supports Chinese naming, but is less used (you can use Pinyin, like 12306 to use pinyin initials TKLC these) numbers can not start using keyword Case-sensitive demo demo See name and Meaning

Introduction to Java

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.