學習目標:
熟練學習Java的相關知識,較為基礎 理論知識為多,大概掠過即可,
學習內容:
1、 Java概述
1、簡單來說Java就是一種高級語言,有se,we,ee等三大體系,不同的體系擁有不同的作用途徑,后期拔高再深入理解, 2、Java擁有許多其他開發語言共有的有點也有自身語言所具有的特點, 例如: 1、簡單易用 2、安全可靠 3、跨平臺 4、面向物件 5、支持多執行緒
2、 JDK的使用
JDK是Java的開發環境工具,現在主要使用更加穩定的1.8版本,配置方式嗶哩嗶哩上有,
3、 系統環境變數
系統環境變數主要分為path和classpath兩種,在配置方面會有相應的檔案夾可以在其中一個之中運行,在提示命令符中進行除錯
4、 第一個Java程式
package no1;
public class no1 {
public static void main(String[] args) {
System.out.println("這是第一個程式");
}
}
5、Java的運行機制
<style>#mermaid-svg-dxqUi3rT1nDXWdVZ .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .label text{fill:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .node rect,#mermaid-svg-dxqUi3rT1nDXWdVZ .node circle,#mermaid-svg-dxqUi3rT1nDXWdVZ .node ellipse,#mermaid-svg-dxqUi3rT1nDXWdVZ .node polygon,#mermaid-svg-dxqUi3rT1nDXWdVZ .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-dxqUi3rT1nDXWdVZ .node .label{text-align:center;fill:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .node.clickable{cursor:pointer}#mermaid-svg-dxqUi3rT1nDXWdVZ .arrowheadPath{fill:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-dxqUi3rT1nDXWdVZ .flowchart-link{stroke:#333;fill:none}#mermaid-svg-dxqUi3rT1nDXWdVZ .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-dxqUi3rT1nDXWdVZ .edgeLabel rect{opacity:0.9}#mermaid-svg-dxqUi3rT1nDXWdVZ .edgeLabel span{color:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-dxqUi3rT1nDXWdVZ .cluster text{fill:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-dxqUi3rT1nDXWdVZ .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-dxqUi3rT1nDXWdVZ text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-dxqUi3rT1nDXWdVZ .actor-line{stroke:grey}#mermaid-svg-dxqUi3rT1nDXWdVZ .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .sequenceNumber{fill:#fff}#mermaid-svg-dxqUi3rT1nDXWdVZ #sequencenumber{fill:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ #crosshead path{fill:#333;stroke:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .messageText{fill:#333;stroke:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-dxqUi3rT1nDXWdVZ .labelText,#mermaid-svg-dxqUi3rT1nDXWdVZ .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-dxqUi3rT1nDXWdVZ .loopText,#mermaid-svg-dxqUi3rT1nDXWdVZ .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-dxqUi3rT1nDXWdVZ .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-dxqUi3rT1nDXWdVZ .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-dxqUi3rT1nDXWdVZ .noteText,#mermaid-svg-dxqUi3rT1nDXWdVZ .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-dxqUi3rT1nDXWdVZ .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-dxqUi3rT1nDXWdVZ .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-dxqUi3rT1nDXWdVZ .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-dxqUi3rT1nDXWdVZ .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dxqUi3rT1nDXWdVZ .section{stroke:none;opacity:0.2}#mermaid-svg-dxqUi3rT1nDXWdVZ .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-dxqUi3rT1nDXWdVZ .section2{fill:#fff400}#mermaid-svg-dxqUi3rT1nDXWdVZ .section1,#mermaid-svg-dxqUi3rT1nDXWdVZ .section3{fill:#fff;opacity:0.2}#mermaid-svg-dxqUi3rT1nDXWdVZ .sectionTitle0{fill:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .sectionTitle1{fill:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .sectionTitle2{fill:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .sectionTitle3{fill:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dxqUi3rT1nDXWdVZ .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-dxqUi3rT1nDXWdVZ .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dxqUi3rT1nDXWdVZ .grid path{stroke-width:0}#mermaid-svg-dxqUi3rT1nDXWdVZ .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-dxqUi3rT1nDXWdVZ .task{stroke-width:2}#mermaid-svg-dxqUi3rT1nDXWdVZ .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dxqUi3rT1nDXWdVZ .taskText:not([font-size]){font-size:11px}#mermaid-svg-dxqUi3rT1nDXWdVZ .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dxqUi3rT1nDXWdVZ .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-dxqUi3rT1nDXWdVZ .task.clickable{cursor:pointer}#mermaid-svg-dxqUi3rT1nDXWdVZ .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-dxqUi3rT1nDXWdVZ .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-dxqUi3rT1nDXWdVZ .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-dxqUi3rT1nDXWdVZ .taskText0,#mermaid-svg-dxqUi3rT1nDXWdVZ .taskText1,#mermaid-svg-dxqUi3rT1nDXWdVZ .taskText2,#mermaid-svg-dxqUi3rT1nDXWdVZ .taskText3{fill:#fff}#mermaid-svg-dxqUi3rT1nDXWdVZ .task0,#mermaid-svg-dxqUi3rT1nDXWdVZ .task1,#mermaid-svg-dxqUi3rT1nDXWdVZ .task2,#mermaid-svg-dxqUi3rT1nDXWdVZ .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-dxqUi3rT1nDXWdVZ .taskTextOutside0,#mermaid-svg-dxqUi3rT1nDXWdVZ .taskTextOutside2{fill:#000}#mermaid-svg-dxqUi3rT1nDXWdVZ .taskTextOutside1,#mermaid-svg-dxqUi3rT1nDXWdVZ .taskTextOutside3{fill:#000}#mermaid-svg-dxqUi3rT1nDXWdVZ .active0,#mermaid-svg-dxqUi3rT1nDXWdVZ .active1,#mermaid-svg-dxqUi3rT1nDXWdVZ .active2,#mermaid-svg-dxqUi3rT1nDXWdVZ .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-dxqUi3rT1nDXWdVZ .activeText0,#mermaid-svg-dxqUi3rT1nDXWdVZ .activeText1,#mermaid-svg-dxqUi3rT1nDXWdVZ .activeText2,#mermaid-svg-dxqUi3rT1nDXWdVZ .activeText3{fill:#000 !important}#mermaid-svg-dxqUi3rT1nDXWdVZ .done0,#mermaid-svg-dxqUi3rT1nDXWdVZ .done1,#mermaid-svg-dxqUi3rT1nDXWdVZ .done2,#mermaid-svg-dxqUi3rT1nDXWdVZ .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-dxqUi3rT1nDXWdVZ .doneText0,#mermaid-svg-dxqUi3rT1nDXWdVZ .doneText1,#mermaid-svg-dxqUi3rT1nDXWdVZ .doneText2,#mermaid-svg-dxqUi3rT1nDXWdVZ .doneText3{fill:#000 !important}#mermaid-svg-dxqUi3rT1nDXWdVZ .crit0,#mermaid-svg-dxqUi3rT1nDXWdVZ .crit1,#mermaid-svg-dxqUi3rT1nDXWdVZ .crit2,#mermaid-svg-dxqUi3rT1nDXWdVZ .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-dxqUi3rT1nDXWdVZ .activeCrit0,#mermaid-svg-dxqUi3rT1nDXWdVZ .activeCrit1,#mermaid-svg-dxqUi3rT1nDXWdVZ .activeCrit2,#mermaid-svg-dxqUi3rT1nDXWdVZ .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-dxqUi3rT1nDXWdVZ .doneCrit0,#mermaid-svg-dxqUi3rT1nDXWdVZ .doneCrit1,#mermaid-svg-dxqUi3rT1nDXWdVZ .doneCrit2,#mermaid-svg-dxqUi3rT1nDXWdVZ .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-dxqUi3rT1nDXWdVZ .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-dxqUi3rT1nDXWdVZ .milestoneText{font-style:italic}#mermaid-svg-dxqUi3rT1nDXWdVZ .doneCritText0,#mermaid-svg-dxqUi3rT1nDXWdVZ .doneCritText1,#mermaid-svg-dxqUi3rT1nDXWdVZ .doneCritText2,#mermaid-svg-dxqUi3rT1nDXWdVZ .doneCritText3{fill:#000 !important}#mermaid-svg-dxqUi3rT1nDXWdVZ .activeCritText0,#mermaid-svg-dxqUi3rT1nDXWdVZ .activeCritText1,#mermaid-svg-dxqUi3rT1nDXWdVZ .activeCritText2,#mermaid-svg-dxqUi3rT1nDXWdVZ .activeCritText3{fill:#000 !important}#mermaid-svg-dxqUi3rT1nDXWdVZ .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dxqUi3rT1nDXWdVZ g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-dxqUi3rT1nDXWdVZ g.classGroup text .title{font-weight:bolder}#mermaid-svg-dxqUi3rT1nDXWdVZ g.clickable{cursor:pointer}#mermaid-svg-dxqUi3rT1nDXWdVZ g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-dxqUi3rT1nDXWdVZ g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-dxqUi3rT1nDXWdVZ .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-dxqUi3rT1nDXWdVZ .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-dxqUi3rT1nDXWdVZ .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-dxqUi3rT1nDXWdVZ .dashed-line{stroke-dasharray:3}#mermaid-svg-dxqUi3rT1nDXWdVZ #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-dxqUi3rT1nDXWdVZ #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-dxqUi3rT1nDXWdVZ #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-dxqUi3rT1nDXWdVZ #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-dxqUi3rT1nDXWdVZ #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-dxqUi3rT1nDXWdVZ #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-dxqUi3rT1nDXWdVZ #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-dxqUi3rT1nDXWdVZ #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-dxqUi3rT1nDXWdVZ .commit-id,#mermaid-svg-dxqUi3rT1nDXWdVZ .commit-msg,#mermaid-svg-dxqUi3rT1nDXWdVZ .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dxqUi3rT1nDXWdVZ .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dxqUi3rT1nDXWdVZ .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dxqUi3rT1nDXWdVZ g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dxqUi3rT1nDXWdVZ g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-dxqUi3rT1nDXWdVZ g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-dxqUi3rT1nDXWdVZ g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-dxqUi3rT1nDXWdVZ g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-dxqUi3rT1nDXWdVZ .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-dxqUi3rT1nDXWdVZ .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-dxqUi3rT1nDXWdVZ .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-dxqUi3rT1nDXWdVZ .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-dxqUi3rT1nDXWdVZ .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-dxqUi3rT1nDXWdVZ .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-dxqUi3rT1nDXWdVZ .edgeLabel text{fill:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dxqUi3rT1nDXWdVZ .node circle.state-start{fill:black;stroke:black}#mermaid-svg-dxqUi3rT1nDXWdVZ .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-dxqUi3rT1nDXWdVZ #statediagram-barbEnd{fill:#9370db}#mermaid-svg-dxqUi3rT1nDXWdVZ .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-dxqUi3rT1nDXWdVZ .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-dxqUi3rT1nDXWdVZ .statediagram-state .divider{stroke:#9370db}#mermaid-svg-dxqUi3rT1nDXWdVZ .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-dxqUi3rT1nDXWdVZ .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-dxqUi3rT1nDXWdVZ .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-dxqUi3rT1nDXWdVZ .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-dxqUi3rT1nDXWdVZ .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-dxqUi3rT1nDXWdVZ .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-dxqUi3rT1nDXWdVZ .note-edge{stroke-dasharray:5}#mermaid-svg-dxqUi3rT1nDXWdVZ .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-dxqUi3rT1nDXWdVZ .error-icon{fill:#522}#mermaid-svg-dxqUi3rT1nDXWdVZ .error-text{fill:#522;stroke:#522}#mermaid-svg-dxqUi3rT1nDXWdVZ .edge-thickness-normal{stroke-width:2px}#mermaid-svg-dxqUi3rT1nDXWdVZ .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-dxqUi3rT1nDXWdVZ .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-dxqUi3rT1nDXWdVZ .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-dxqUi3rT1nDXWdVZ .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-dxqUi3rT1nDXWdVZ .marker{fill:#333}#mermaid-svg-dxqUi3rT1nDXWdVZ .marker.cross{stroke:#333}
:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}</style>
<style>#mermaid-svg-dxqUi3rT1nDXWdVZ {
color: rgba(0, 0, 0, 0.75);
font: ;
}</style>
hello worder.java源檔案
編譯器
hello worder.class位元組碼檔案
決議器
機器碼檔案
計算機
主要操作在Java虛擬機中進行運行不是通過作業系統進行運行的,所以可以進行庫平臺操作,實作跨平臺運行,
6、Eclipse開發工具
由IBM公司制作的開發工具,為方便開發人員的一種工具,下載安裝即可,較為基礎不多BB,
學習時間:
2021年8月1日18點09分
學習產出:
提示:這里統計學習計劃的總量 例如: 1、CSDN 技術博客 1 篇