Javaweb Basics of--java Learning (1)

Source: Internet
Author: User

First, Java overview

Java EE refers to Edition,java Enterprise Edition, which is used for enterprise-level development, including web development, and so on. Also called the Java EE.

Javase usually refers to Java standard Edition,java, which is the development of a generic Java program (such as a desktop program) that can be viewed as a subset of a Java EE.

Java is a language, and Java is a Java language of the use of the technology, in which it provides the library and the syntax for the EE, Java's library and syntax is applied to the web. This is the conceptual difference.

For a more detailed explanation:

There are three versions of the Java platform, which enables software developers, service providers, and device manufacturers to develop for specific markets:
Java SE (Java platform,standard Edition). Java SE was formerly known as J2SE. It allows you to develop and deploy Java applications that are used in desktops, servers, embedded environments, and live environments. Java SE contains classes that support Java WEB Service development and provides the foundation for Java platform,enterprise Edition (Java EE).
Java EE (Java platform,enterprise Edition). This version was formerly known as the Java EE. The Enterprise Edition helps develop and deploy portable, robust, scalable, and secure server-side Java applications. Built on the Java SE, Java EE provides Web services, component models, management, and communication APIs that can be used to implement enterprise-class service-oriented architecture (service-oriented Architecture,soa) and Web 2.0 applications.
Java ME (Java platform,micro Edition). This version was formerly known as J2ME. Java ME provides a robust and flexible environment for applications running on mobile devices and embedded devices such as mobile phones, PDAs, TV set-top boxes, and printers. Java ME includes a flexible user interface, robust security model, many built-in network protocols, and rich support for Web and offline applications that can be dynamically downloaded. Applications based on the Java ME specification need to be written once, can be used for many devices, and can take advantage of the native capabilities of each device.

Ii. Common DOS commands

Dos commands are commands that are used in the DOS console, and the DOS console is ejected by win+r, then output cmd

  

DOS commands have many, common DOS commands in Java, the content is as follows:

1. Clear screen: CLS;

When the DOS console content is too large, you can use the clear Screen command, equivalent to "wipe the blackboard";

For example, C: \ >cls, and then press ENTER.

2. Switch letter::;

By default we are in the C drive, if you want to go to other drive letter can use the command;

For example: C: \ >e, and then press ENTER to go to the E-drive.

Enter the specified directory: cd;

We can use this command when we want to enter a directory;

For example: D:\>CD develop, so entered the D:\develop directory, of course, you need to ensure that the directory is present;

For example: D:\>CD Develop\java, this enters the D:\develop\Java directory.

3. Return to the previous level directory: CD. ; 0

You can use this command when you need to return to the previous level of the directory;

For example: D:\DEVELOP\JAVA>CD, and then press ENTER, it will be returned to the D:\develop directory.

4. Return Disk descriptor directory: cd\;

You can use this command when you need to return to the current disk descriptor directory;

For example: d:\develop\java>cd\, then press ENTER to return to the d:/directory.

5. Displays the file and subdirectory information in the current directory: dir;

You can use this command when you need to view all the file and subdirectory information in the current directory;

6. Run the application: Program full Name parameter

You can use this command when you need to run an application;

For example, to run the Notepad program: D:\>c:\windows\notepad.exe, this opens the Notepad program, which is the same as you can double-click the program icon in the C:\windows directory, because the program supports double-click Run;

You can also omit the ". exe" suffix, for example: D:\>c:\windows\notepad, the effect is ditto;

Iii. the differences between JDK and JRE

JDK: It is the Java Development run environment, on the programmer's computer, of course, to install the JDK;

Jre:java Runtime Environment It is the Java Runtime Environment, if you do not need to develop only the Java program, then you can install the JRE. For example, the programmer developed the program eventually sold to the user, the user does not develop, only need to run the program, so users install the JRE on the computer.

The JDK contains the JRE.

Iv. cross-platform features of Java

The platform refers to the operating system (WINDOWS,LINUX,MAC).

Java programs can run on any operating system, write once and run everywhere

Implementing a Java-dependent VM JVM (Java Virtual machine) for cross-platform needs

V. Hello World case

1  Public class helloworld{2      Public Static void Main (string[] args) {3         System.out.println ("Hello World  !!!" ); 4     }5 }

Through we can understand that the process of preparation is generally as follows;

    1. Source file: Write the Java source file (which we also call the source code file), which has the extension. java;
    2. Compile: Then compile the source file into a bytecode file through the compiler, the bytecode file extension is. class;
    3. Run: Finally, use the interpreter to run the bytecode file.

Javaweb Basics of--java Learning (1)

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.