20165218 2017-2018-2 "Java programming" the first week of study summary

Source: Internet
Author: User
Tags using git

20165218 2017-2018-2 "Java program design" the first week to summarize the contents of the study summary of the first chapter. Getting Started with Java 1. Java features

Java has a simple, object-oriented, platform-independent, multi-threading, dynamic and other characteristics, platform-independent is the most important feature to make it popular all over the world. platform independent refers to the same Java instructions can be run on different platforms, not affected by the platform's own machine code. This is because Java can provide a Java runtime environment on top of the computer's operating system .

graph LRA[Java语言]-->B[字节码]B-->C[机器指令]

2. Platform =os (operating system) +CPU3. Java Development steps:
graph LRA[编写源文件 *.java]-->|编译器 javac命令|B[编译源文件 *.class]B-->|产生|C[字节码]C-->|解释器 java命令|D[执行字节码]

* The above two flowcharts can be used in the Youdao cloud to achieve the effect, attached

    • The written form of the source file is independent of each other and has no effect on the sequence.
    • If there is a public class, then *.java the file name is consistent with the public class, and if there is no public class, *.java the file name is consistent with any class
    • Case sensitive
    • To save as .java a file without 是.txt ; "Save Type": "All Files", "encoding":ANSI
    • The corresponding file will be generated after compiling *.class
    • Run-time to enter the directory where the main class resides
    • The main class is void main the class that contains the method
    • The runtime only needs input java [主类名] , no need to enter the extension
4. Anti-compilation javap *.class, you can only decompile the method name, and you cannot decompile the content code hosting

Other
    1. When using Git to upload code to the code cloud, the first time you need to follow the tutorial Ubuntu git installation and use of the guidance to configure, and later upload only use git add . , git commit -m"注释" , git push three commands can be
      (Note the syntax to refer to git best practices: Commit msg)
    2. I use Git to upload the second time, the wrong operation was again configured, and the project name is wrong, resulting in the following conditions

Later, under the guidance of senior seniors, carried out the following operations, and git remote rm origin git remote add origin http://git.oschina.net/zicerain/java20165218 then use git init ,,, git add . git commit git push origin master can successfully upload

    1. For an introduction to Git's various commands, what does the git commit command do? _ Baidu knows
Resources
    • Java Learning Note (8th Edition) Learning Guide
    • Use the Code cloud and blog Park to learn a simple tutorial
    • Using Open source China (code cloud) managed code
    • Intellj Idea Easy Tutorial
    • Installation and use of Git under Ubuntu
    • Git Best Practices: Commit MSG

20165218 2017-2018-2 "Java programming" the first week of study summary

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.