先自我介绍一下,小编浙江大学毕业,去过华为、字节跳动等大厂,目前阿里P7
深知大多数程序员,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年最新Java开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上Java开发知识点,真正体系化!
由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新
如果你需要这些资料,可以添加V获取:vip1024b (备注Java)
正文
#mermaid-svg-M0xrIVQZ1FmUOY4E .label{font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family);fill:#333;color:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .label text{fill:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .node rect,#mermaid-svg-M0xrIVQZ1FmUOY4E .node circle,#mermaid-svg-M0xrIVQZ1FmUOY4E .node ellipse,#mermaid-svg-M0xrIVQZ1FmUOY4E .node polygon,#mermaid-svg-M0xrIVQZ1FmUOY4E .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-M0xrIVQZ1FmUOY4E .node .label{text-align:center;fill:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .node.clickable{cursor:pointer}#mermaid-svg-M0xrIVQZ1FmUOY4E .arrowheadPath{fill:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-M0xrIVQZ1FmUOY4E .flowchart-link{stroke:#333;fill:none}#mermaid-svg-M0xrIVQZ1FmUOY4E .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-M0xrIVQZ1FmUOY4E .edgeLabel rect{opacity:0.9}#mermaid-svg-M0xrIVQZ1FmUOY4E .edgeLabel span{color:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-M0xrIVQZ1FmUOY4E .cluster text{fill:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E 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-M0xrIVQZ1FmUOY4E .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-M0xrIVQZ1FmUOY4E text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-M0xrIVQZ1FmUOY4E .actor-line{stroke:grey}#mermaid-svg-M0xrIVQZ1FmUOY4E .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .sequenceNumber{fill:#fff}#mermaid-svg-M0xrIVQZ1FmUOY4E #sequencenumber{fill:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E #crosshead path{fill:#333;stroke:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .messageText{fill:#333;stroke:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-M0xrIVQZ1FmUOY4E .labelText,#mermaid-svg-M0xrIVQZ1FmUOY4E .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-M0xrIVQZ1FmUOY4E .loopText,#mermaid-svg-M0xrIVQZ1FmUOY4E .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-M0xrIVQZ1FmUOY4E .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-M0xrIVQZ1FmUOY4E .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-M0xrIVQZ1FmUOY4E .noteText,#mermaid-svg-M0xrIVQZ1FmUOY4E .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-M0xrIVQZ1FmUOY4E .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-M0xrIVQZ1FmUOY4E .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-M0xrIVQZ1FmUOY4E .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-M0xrIVQZ1FmUOY4E .mermaid-main-font{font-family:“trebuchet ms”, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-M0xrIVQZ1FmUOY4E .section{stroke:none;opacity:0.2}#mermaid-svg-M0xrIVQZ1FmUOY4E .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-M0xrIVQZ1FmUOY4E .section2{fill:#fff400}#mermaid-svg-M0xrIVQZ1FmUOY4E .section1,#mermaid-svg-M0xrIVQZ1FmUOY4E .section3{fill:#fff;opacity:0.2}#mermaid-svg-M0xrIVQZ1FmUOY4E .sectionTitle0{fill:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .sectionTitle1{fill:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .sectionTitle2{fill:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .sectionTitle3{fill:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-M0xrIVQZ1FmUOY4E .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-M0xrIVQZ1FmUOY4E .grid .tick text{font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-M0xrIVQZ1FmUOY4E .grid path{stroke-width:0}#mermaid-svg-M0xrIVQZ1FmUOY4E .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-M0xrIVQZ1FmUOY4E .task{stroke-width:2}#mermaid-svg-M0xrIVQZ1FmUOY4E .taskText{text-anchor:middle;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-M0xrIVQZ1FmUOY4E .taskText:not([font-size]){font-size:11px}#mermaid-svg-M0xrIVQZ1FmUOY4E .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-M0xrIVQZ1FmUOY4E .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-M0xrIVQZ1FmUOY4E .task.clickable{cursor:pointer}#mermaid-svg-M0xrIVQZ1FmUOY4E .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-M0xrIVQZ1FmUOY4E .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-M0xrIVQZ1FmUOY4E .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-M0xrIVQZ1FmUOY4E .taskText0,#mermaid-svg-M0xrIVQZ1FmUOY4E .taskText1,#mermaid-svg-M0xrIVQZ1FmUOY4E .taskText2,#mermaid-svg-M0xrIVQZ1FmUOY4E .taskText3{fill:#fff}#mermaid-svg-M0xrIVQZ1FmUOY4E .task0,#mermaid-svg-M0xrIVQZ1FmUOY4E .task1,#mermaid-svg-M0xrIVQZ1FmUOY4E .task2,#mermaid-svg-M0xrIVQZ1FmUOY4E .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-M0xrIVQZ1FmUOY4E .taskTextOutside0,#mermaid-svg-M0xrIVQZ1FmUOY4E .taskTextOutside2{fill:#000}#mermaid-svg-M0xrIVQZ1FmUOY4E .taskTextOutside1,#mermaid-svg-M0xrIVQZ1FmUOY4E .taskTextOutside3{fill:#000}#mermaid-svg-M0xrIVQZ1FmUOY4E .active0,#mermaid-svg-M0xrIVQZ1FmUOY4E .active1,#mermaid-svg-M0xrIVQZ1FmUOY4E .active2,#mermaid-svg-M0xrIVQZ1FmUOY4E .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-M0xrIVQZ1FmUOY4E .activeText0,#mermaid-svg-M0xrIVQZ1FmUOY4E .activeText1,#mermaid-svg-M0xrIVQZ1FmUOY4E .activeText2,#mermaid-svg-M0xrIVQZ1FmUOY4E .activeText3{fill:#000 !important}#mermaid-svg-M0xrIVQZ1FmUOY4E .done0,#mermaid-svg-M0xrIVQZ1FmUOY4E .done1,#mermaid-svg-M0xrIVQZ1FmUOY4E .done2,#mermaid-svg-M0xrIVQZ1FmUOY4E .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-M0xrIVQZ1FmUOY4E .doneText0,#mermaid-svg-M0xrIVQZ1FmUOY4E .doneText1,#mermaid-svg-M0xrIVQZ1FmUOY4E .doneText2,#mermaid-svg-M0xrIVQZ1FmUOY4E .doneText3{fill:#000 !important}#mermaid-svg-M0xrIVQZ1FmUOY4E .crit0,#mermaid-svg-M0xrIVQZ1FmUOY4E .crit1,#mermaid-svg-M0xrIVQZ1FmUOY4E .crit2,#mermaid-svg-M0xrIVQZ1FmUOY4E .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-M0xrIVQZ1FmUOY4E .activeCrit0,#mermaid-svg-M0xrIVQZ1FmUOY4E .activeCrit1,#mermaid-svg-M0xrIVQZ1FmUOY4E .activeCrit2,#mermaid-svg-M0xrIVQZ1FmUOY4E .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-M0xrIVQZ1FmUOY4E .doneCrit0,#mermaid-svg-M0xrIVQZ1FmUOY4E .doneCrit1,#mermaid-svg-M0xrIVQZ1FmUOY4E .doneCrit2,#mermaid-svg-M0xrIVQZ1FmUOY4E .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-M0xrIVQZ1FmUOY4E .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-M0xrIVQZ1FmUOY4E .milestoneText{font-style:italic}#mermaid-svg-M0xrIVQZ1FmUOY4E .doneCritText0,#mermaid-svg-M0xrIVQZ1FmUOY4E .doneCritText1,#mermaid-svg-M0xrIVQZ1FmUOY4E .doneCritText2,#mermaid-svg-M0xrIVQZ1FmUOY4E .doneCritText3{fill:#000 !important}#mermaid-svg-M0xrIVQZ1FmUOY4E .activeCritText0,#mermaid-svg-M0xrIVQZ1FmUOY4E .activeCritText1,#mermaid-svg-M0xrIVQZ1FmUOY4E .activeCritText2,#mermaid-svg-M0xrIVQZ1FmUOY4E .activeCritText3{fill:#000 !important}#mermaid-svg-M0xrIVQZ1FmUOY4E .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-M0xrIVQZ1FmUOY4E g.classGroup text{fill:#9370db;stroke:none;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family);font-size:10px}#mermaid-svg-M0xrIVQZ1FmUOY4E g.classGroup text .title{font-weight:bolder}#mermaid-svg-M0xrIVQZ1FmUOY4E g.clickable{cursor:pointer}#mermaid-svg-M0xrIVQZ1FmUOY4E g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-M0xrIVQZ1FmUOY4E g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-M0xrIVQZ1FmUOY4E .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-M0xrIVQZ1FmUOY4E .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-M0xrIVQZ1FmUOY4E .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-M0xrIVQZ1FmUOY4E .dashed-line{stroke-dasharray:3}#mermaid-svg-M0xrIVQZ1FmUOY4E #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-M0xrIVQZ1FmUOY4E #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-M0xrIVQZ1FmUOY4E #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-M0xrIVQZ1FmUOY4E #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-M0xrIVQZ1FmUOY4E #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-M0xrIVQZ1FmUOY4E #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-M0xrIVQZ1FmUOY4E #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-M0xrIVQZ1FmUOY4E #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-M0xrIVQZ1FmUOY4E .commit-id,#mermaid-svg-M0xrIVQZ1FmUOY4E .commit-msg,#mermaid-svg-M0xrIVQZ1FmUOY4E .branch-label{fill:lightgrey;color:lightgrey;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-M0xrIVQZ1FmUOY4E .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-M0xrIVQZ1FmUOY4E .slice{font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-M0xrIVQZ1FmUOY4E g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-M0xrIVQZ1FmUOY4E g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-M0xrIVQZ1FmUOY4E g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-M0xrIVQZ1FmUOY4E g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-M0xrIVQZ1FmUOY4E g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-M0xrIVQZ1FmUOY4E .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-M0xrIVQZ1FmUOY4E .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-M0xrIVQZ1FmUOY4E .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-M0xrIVQZ1FmUOY4E .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-M0xrIVQZ1FmUOY4E .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-M0xrIVQZ1FmUOY4E .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-M0xrIVQZ1FmUOY4E .edgeLabel text{fill:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-M0xrIVQZ1FmUOY4E .node circle.state-start{fill:black;stroke:black}#mermaid-svg-M0xrIVQZ1FmUOY4E .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-M0xrIVQZ1FmUOY4E #statediagram-barbEnd{fill:#9370db}#mermaid-svg-M0xrIVQZ1FmUOY4E .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-M0xrIVQZ1FmUOY4E .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-M0xrIVQZ1FmUOY4E .statediagram-state .divider{stroke:#9370db}#mermaid-svg-M0xrIVQZ1FmUOY4E .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-M0xrIVQZ1FmUOY4E .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-M0xrIVQZ1FmUOY4E .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-M0xrIVQZ1FmUOY4E .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-M0xrIVQZ1FmUOY4E .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-M0xrIVQZ1FmUOY4E .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-M0xrIVQZ1FmUOY4E .note-edge{stroke-dasharray:5}#mermaid-svg-M0xrIVQZ1FmUOY4E .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-M0xrIVQZ1FmUOY4E .error-icon{fill:#522}#mermaid-svg-M0xrIVQZ1FmUOY4E .error-text{fill:#522;stroke:#522}#mermaid-svg-M0xrIVQZ1FmUOY4E .edge-thickness-normal{stroke-width:2px}#mermaid-svg-M0xrIVQZ1FmUOY4E .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-M0xrIVQZ1FmUOY4E .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-M0xrIVQZ1FmUOY4E .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-M0xrIVQZ1FmUOY4E .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-M0xrIVQZ1FmUOY4E .marker{fill:#333}#mermaid-svg-M0xrIVQZ1FmUOY4E .marker.cross{stroke:#333} :root { --mermaid-font-family: “trebuchet ms”, verdana, arial;} #mermaid-svg-M0xrIVQZ1FmUOY4E { color: rgba(0, 0, 0, 0.75); font: ; }
大多数
JAVA源文件
class文件
classLoader
字节码解释器
JNI即时编译
机器码
操作系统
====================================================================
#mermaid-svg-tywk0Qrja0OSvuRS .label{font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family);fill:#333;color:#333}#mermaid-svg-tywk0Qrja0OSvuRS .label text{fill:#333}#mermaid-svg-tywk0Qrja0OSvuRS .node rect,#mermaid-svg-tywk0Qrja0OSvuRS .node circle,#mermaid-svg-tywk0Qrja0OSvuRS .node ellipse,#mermaid-svg-tywk0Qrja0OSvuRS .node polygon,#mermaid-svg-tywk0Qrja0OSvuRS .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-tywk0Qrja0OSvuRS .node .label{text-align:center;fill:#333}#mermaid-svg-tywk0Qrja0OSvuRS .node.clickable{cursor:pointer}#mermaid-svg-tywk0Qrja0OSvuRS .arrowheadPath{fill:#333}#mermaid-svg-tywk0Qrja0OSvuRS .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-tywk0Qrja0OSvuRS .flowchart-link{stroke:#333;fill:none}#mermaid-svg-tywk0Qrja0OSvuRS .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-tywk0Qrja0OSvuRS .edgeLabel rect{opacity:0.9}#mermaid-svg-tywk0Qrja0OSvuRS .edgeLabel span{color:#333}#mermaid-svg-tywk0Qrja0OSvuRS .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-tywk0Qrja0OSvuRS .cluster text{fill:#333}#mermaid-svg-tywk0Qrja0OSvuRS 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-tywk0Qrja0OSvuRS .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-tywk0Qrja0OSvuRS text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-tywk0Qrja0OSvuRS .actor-line{stroke:grey}#mermaid-svg-tywk0Qrja0OSvuRS .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-tywk0Qrja0OSvuRS .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-tywk0Qrja0OSvuRS #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-tywk0Qrja0OSvuRS .sequenceNumber{fill:#fff}#mermaid-svg-tywk0Qrja0OSvuRS #sequencenumber{fill:#333}#mermaid-svg-tywk0Qrja0OSvuRS #crosshead path{fill:#333;stroke:#333}#mermaid-svg-tywk0Qrja0OSvuRS .messageText{fill:#333;stroke:#333}#mermaid-svg-tywk0Qrja0OSvuRS .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-tywk0Qrja0OSvuRS .labelText,#mermaid-svg-tywk0Qrja0OSvuRS .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-tywk0Qrja0OSvuRS .loopText,#mermaid-svg-tywk0Qrja0OSvuRS .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-tywk0Qrja0OSvuRS .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-tywk0Qrja0OSvuRS .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-tywk0Qrja0OSvuRS .noteText,#mermaid-svg-tywk0Qrja0OSvuRS .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-tywk0Qrja0OSvuRS .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-tywk0Qrja0OSvuRS .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-tywk0Qrja0OSvuRS .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-tywk0Qrja0OSvuRS .mermaid-main-font{font-family:“trebuchet ms”, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-tywk0Qrja0OSvuRS .section{stroke:none;opacity:0.2}#mermaid-svg-tywk0Qrja0OSvuRS .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-tywk0Qrja0OSvuRS .section2{fill:#fff400}#mermaid-svg-tywk0Qrja0OSvuRS .section1,#mermaid-svg-tywk0Qrja0OSvuRS .section3{fill:#fff;opacity:0.2}#mermaid-svg-tywk0Qrja0OSvuRS .sectionTitle0{fill:#333}#mermaid-svg-tywk0Qrja0OSvuRS .sectionTitle1{fill:#333}#mermaid-svg-tywk0Qrja0OSvuRS .sectionTitle2{fill:#333}#mermaid-svg-tywk0Qrja0OSvuRS .sectionTitle3{fill:#333}#mermaid-svg-tywk0Qrja0OSvuRS .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-tywk0Qrja0OSvuRS .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-tywk0Qrja0OSvuRS .grid .tick text{font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-tywk0Qrja0OSvuRS .grid path{stroke-width:0}#mermaid-svg-tywk0Qrja0OSvuRS .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-tywk0Qrja0OSvuRS .task{stroke-width:2}#mermaid-svg-tywk0Qrja0OSvuRS .taskText{text-anchor:middle;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-tywk0Qrja0OSvuRS .taskText:not([font-size]){font-size:11px}#mermaid-svg-tywk0Qrja0OSvuRS .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-tywk0Qrja0OSvuRS .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-tywk0Qrja0OSvuRS .task.clickable{cursor:pointer}#mermaid-svg-tywk0Qrja0OSvuRS .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-tywk0Qrja0OSvuRS .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-tywk0Qrja0OSvuRS .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-tywk0Qrja0OSvuRS .taskText0,#mermaid-svg-tywk0Qrja0OSvuRS .taskText1,#mermaid-svg-tywk0Qrja0OSvuRS .taskText2,#mermaid-svg-tywk0Qrja0OSvuRS .taskText3{fill:#fff}#mermaid-svg-tywk0Qrja0OSvuRS .task0,#mermaid-svg-tywk0Qrja0OSvuRS .task1,#mermaid-svg-tywk0Qrja0OSvuRS .task2,#mermaid-svg-tywk0Qrja0OSvuRS .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-tywk0Qrja0OSvuRS .taskTextOutside0,#mermaid-svg-tywk0Qrja0OSvuRS .taskTextOutside2{fill:#000}#mermaid-svg-tywk0Qrja0OSvuRS .taskTextOutside1,#mermaid-svg-tywk0Qrja0OSvuRS .taskTextOutside3{fill:#000}#mermaid-svg-tywk0Qrja0OSvuRS .active0,#mermaid-svg-tywk0Qrja0OSvuRS .active1,#mermaid-svg-tywk0Qrja0OSvuRS .active2,#mermaid-svg-tywk0Qrja0OSvuRS .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-tywk0Qrja0OSvuRS .activeText0,#mermaid-svg-tywk0Qrja0OSvuRS .activeText1,#mermaid-svg-tywk0Qrja0OSvuRS .activeText2,#mermaid-svg-tywk0Qrja0OSvuRS .activeText3{fill:#000 !important}#mermaid-svg-tywk0Qrja0OSvuRS .done0,#mermaid-svg-tywk0Qrja0OSvuRS .done1,#mermaid-svg-tywk0Qrja0OSvuRS .done2,#mermaid-svg-tywk0Qrja0OSvuRS .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-tywk0Qrja0OSvuRS .doneText0,#mermaid-svg-tywk0Qrja0OSvuRS .doneText1,#mermaid-svg-tywk0Qrja0OSvuRS .doneText2,#mermaid-svg-tywk0Qrja0OSvuRS .doneText3{fill:#000 !important}#mermaid-svg-tywk0Qrja0OSvuRS .crit0,#mermaid-svg-tywk0Qrja0OSvuRS .crit1,#mermaid-svg-tywk0Qrja0OSvuRS .crit2,#mermaid-svg-tywk0Qrja0OSvuRS .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-tywk0Qrja0OSvuRS .activeCrit0,#mermaid-svg-tywk0Qrja0OSvuRS .activeCrit1,#mermaid-svg-tywk0Qrja0OSvuRS .activeCrit2,#mermaid-svg-tywk0Qrja0OSvuRS .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-tywk0Qrja0OSvuRS .doneCrit0,#mermaid-svg-tywk0Qrja0OSvuRS .doneCrit1,#mermaid-svg-tywk0Qrja0OSvuRS .doneCrit2,#mermaid-svg-tywk0Qrja0OSvuRS .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-tywk0Qrja0OSvuRS .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-tywk0Qrja0OSvuRS .milestoneText{font-style:italic}#mermaid-svg-tywk0Qrja0OSvuRS .doneCritText0,#mermaid-svg-tywk0Qrja0OSvuRS .doneCritText1,#mermaid-svg-tywk0Qrja0OSvuRS .doneCritText2,#mermaid-svg-tywk0Qrja0OSvuRS .doneCritText3{fill:#000 !important}#mermaid-svg-tywk0Qrja0OSvuRS .activeCritText0,#mermaid-svg-tywk0Qrja0OSvuRS .activeCritText1,#mermaid-svg-tywk0Qrja0OSvuRS .activeCritText2,#mermaid-svg-tywk0Qrja0OSvuRS .activeCritText3{fill:#000 !important}#mermaid-svg-tywk0Qrja0OSvuRS .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-tywk0Qrja0OSvuRS g.classGroup text{fill:#9370db;stroke:none;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family);font-size:10px}#mermaid-svg-tywk0Qrja0OSvuRS g.classGroup text .title{font-weight:bolder}#mermaid-svg-tywk0Qrja0OSvuRS g.clickable{cursor:pointer}#mermaid-svg-tywk0Qrja0OSvuRS g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-tywk0Qrja0OSvuRS g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-tywk0Qrja0OSvuRS .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-tywk0Qrja0OSvuRS .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-tywk0Qrja0OSvuRS .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-tywk0Qrja0OSvuRS .dashed-line{stroke-dasharray:3}#mermaid-svg-tywk0Qrja0OSvuRS #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-tywk0Qrja0OSvuRS #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-tywk0Qrja0OSvuRS #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-tywk0Qrja0OSvuRS #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-tywk0Qrja0OSvuRS #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-tywk0Qrja0OSvuRS #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-tywk0Qrja0OSvuRS #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-tywk0Qrja0OSvuRS #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-tywk0Qrja0OSvuRS .commit-id,#mermaid-svg-tywk0Qrja0OSvuRS .commit-msg,#mermaid-svg-tywk0Qrja0OSvuRS .branch-label{fill:lightgrey;color:lightgrey;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-tywk0Qrja0OSvuRS .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-tywk0Qrja0OSvuRS .slice{font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-tywk0Qrja0OSvuRS g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-tywk0Qrja0OSvuRS g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-tywk0Qrja0OSvuRS g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-tywk0Qrja0OSvuRS g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-tywk0Qrja0OSvuRS g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-tywk0Qrja0OSvuRS g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-tywk0Qrja0OSvuRS .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-tywk0Qrja0OSvuRS .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-tywk0Qrja0OSvuRS .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-tywk0Qrja0OSvuRS .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-tywk0Qrja0OSvuRS .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-tywk0Qrja0OSvuRS .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-tywk0Qrja0OSvuRS .edgeLabel text{fill:#333}#mermaid-svg-tywk0Qrja0OSvuRS .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-tywk0Qrja0OSvuRS .node circle.state-start{fill:black;stroke:black}#mermaid-svg-tywk0Qrja0OSvuRS .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-tywk0Qrja0OSvuRS #statediagram-barbEnd{fill:#9370db}#mermaid-svg-tywk0Qrja0OSvuRS .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-tywk0Qrja0OSvuRS .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-tywk0Qrja0OSvuRS .statediagram-state .divider{stroke:#9370db}#mermaid-svg-tywk0Qrja0OSvuRS .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-tywk0Qrja0OSvuRS .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-tywk0Qrja0OSvuRS .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-tywk0Qrja0OSvuRS .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-tywk0Qrja0OSvuRS .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-tywk0Qrja0OSvuRS .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-tywk0Qrja0OSvuRS .note-edge{stroke-dasharray:5}#mermaid-svg-tywk0Qrja0OSvuRS .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-tywk0Qrja0OSvuRS .error-icon{fill:#522}#mermaid-svg-tywk0Qrja0OSvuRS .error-text{fill:#522;stroke:#522}#mermaid-svg-tywk0Qrja0OSvuRS .edge-thickness-normal{stroke-width:2px}#mermaid-svg-tywk0Qrja0OSvuRS .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-tywk0Qrja0OSvuRS .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-tywk0Qrja0OSvuRS .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-tywk0Qrja0OSvuRS .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-tywk0Qrja0OSvuRS .marker{fill:#333}#mermaid-svg-tywk0Qrja0OSvuRS .marker.cross{stroke:#333} :root { --mermaid-font-family: “trebuchet ms”, verdana, arial;} #mermaid-svg-tywk0Qrja0OSvuRS { color: rgba(0, 0, 0, 0.75); font: ; }
内存结构
运行时数据区
堆外内存
线程私有
线程共享
虚拟机栈 -Xss
本地方法栈
程序计数器
堆 -Xmx -Xmx
方法区
JVM运行时数据区:
图源:King老师
====================================================================
图源:King老师
方法调用时创建栈帧,并压入虚拟机栈中,当方法执行完毕时,栈帧从虚拟机栈中出栈。主要是做方法的出栈与入栈,同时,虚拟机栈是有大小限制的,可以通过-Xss来设置虚拟机栈的大小。在64位机器上,这个参数的默认值是1m,官方解释说明如下:
-
栈溢出:一般是方法调用过深,常见于递归调用
-
内存溢出:当线程创建过多时,每个线程会占用-Xss大小的内存,最后如果内存不足,也会OOM
理解:虚拟机栈中存放是栈针,方法被调用时,创建栈针并压入虚拟机栈中,栈帧分为四个组层部分,分别是局部变量表、操作数栈、动态连接和完成出口
#mermaid-svg-FpyQxeIgBDSK37Qt .label{font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family);fill:#333;color:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .label text{fill:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .node rect,#mermaid-svg-FpyQxeIgBDSK37Qt .node circle,#mermaid-svg-FpyQxeIgBDSK37Qt .node ellipse,#mermaid-svg-FpyQxeIgBDSK37Qt .node polygon,#mermaid-svg-FpyQxeIgBDSK37Qt .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-FpyQxeIgBDSK37Qt .node .label{text-align:center;fill:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .node.clickable{cursor:pointer}#mermaid-svg-FpyQxeIgBDSK37Qt .arrowheadPath{fill:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-FpyQxeIgBDSK37Qt .flowchart-link{stroke:#333;fill:none}#mermaid-svg-FpyQxeIgBDSK37Qt .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-FpyQxeIgBDSK37Qt .edgeLabel rect{opacity:0.9}#mermaid-svg-FpyQxeIgBDSK37Qt .edgeLabel span{color:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-FpyQxeIgBDSK37Qt .cluster text{fill:#333}#mermaid-svg-FpyQxeIgBDSK37Qt 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-FpyQxeIgBDSK37Qt .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-FpyQxeIgBDSK37Qt text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-FpyQxeIgBDSK37Qt .actor-line{stroke:grey}#mermaid-svg-FpyQxeIgBDSK37Qt .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-FpyQxeIgBDSK37Qt #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .sequenceNumber{fill:#fff}#mermaid-svg-FpyQxeIgBDSK37Qt #sequencenumber{fill:#333}#mermaid-svg-FpyQxeIgBDSK37Qt #crosshead path{fill:#333;stroke:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .messageText{fill:#333;stroke:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-FpyQxeIgBDSK37Qt .labelText,#mermaid-svg-FpyQxeIgBDSK37Qt .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-FpyQxeIgBDSK37Qt .loopText,#mermaid-svg-FpyQxeIgBDSK37Qt .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-FpyQxeIgBDSK37Qt .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-FpyQxeIgBDSK37Qt .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-FpyQxeIgBDSK37Qt .noteText,#mermaid-svg-FpyQxeIgBDSK37Qt .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-FpyQxeIgBDSK37Qt .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-FpyQxeIgBDSK37Qt .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-FpyQxeIgBDSK37Qt .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-FpyQxeIgBDSK37Qt .mermaid-main-font{font-family:“trebuchet ms”, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-FpyQxeIgBDSK37Qt .section{stroke:none;opacity:0.2}#mermaid-svg-FpyQxeIgBDSK37Qt .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-FpyQxeIgBDSK37Qt .section2{fill:#fff400}#mermaid-svg-FpyQxeIgBDSK37Qt .section1,#mermaid-svg-FpyQxeIgBDSK37Qt .section3{fill:#fff;opacity:0.2}#mermaid-svg-FpyQxeIgBDSK37Qt .sectionTitle0{fill:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .sectionTitle1{fill:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .sectionTitle2{fill:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .sectionTitle3{fill:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-FpyQxeIgBDSK37Qt .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-FpyQxeIgBDSK37Qt .grid .tick text{font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-FpyQxeIgBDSK37Qt .grid path{stroke-width:0}#mermaid-svg-FpyQxeIgBDSK37Qt .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-FpyQxeIgBDSK37Qt .task{stroke-width:2}#mermaid-svg-FpyQxeIgBDSK37Qt .taskText{text-anchor:middle;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-FpyQxeIgBDSK37Qt .taskText:not([font-size]){font-size:11px}#mermaid-svg-FpyQxeIgBDSK37Qt .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-FpyQxeIgBDSK37Qt .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-FpyQxeIgBDSK37Qt .task.clickable{cursor:pointer}#mermaid-svg-FpyQxeIgBDSK37Qt .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-FpyQxeIgBDSK37Qt .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-FpyQxeIgBDSK37Qt .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-FpyQxeIgBDSK37Qt .taskText0,#mermaid-svg-FpyQxeIgBDSK37Qt .taskText1,#mermaid-svg-FpyQxeIgBDSK37Qt .taskText2,#mermaid-svg-FpyQxeIgBDSK37Qt .taskText3{fill:#fff}#mermaid-svg-FpyQxeIgBDSK37Qt .task0,#mermaid-svg-FpyQxeIgBDSK37Qt .task1,#mermaid-svg-FpyQxeIgBDSK37Qt .task2,#mermaid-svg-FpyQxeIgBDSK37Qt .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-FpyQxeIgBDSK37Qt .taskTextOutside0,#mermaid-svg-FpyQxeIgBDSK37Qt .taskTextOutside2{fill:#000}#mermaid-svg-FpyQxeIgBDSK37Qt .taskTextOutside1,#mermaid-svg-FpyQxeIgBDSK37Qt .taskTextOutside3{fill:#000}#mermaid-svg-FpyQxeIgBDSK37Qt .active0,#mermaid-svg-FpyQxeIgBDSK37Qt .active1,#mermaid-svg-FpyQxeIgBDSK37Qt .active2,#mermaid-svg-FpyQxeIgBDSK37Qt .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-FpyQxeIgBDSK37Qt .activeText0,#mermaid-svg-FpyQxeIgBDSK37Qt .activeText1,#mermaid-svg-FpyQxeIgBDSK37Qt .activeText2,#mermaid-svg-FpyQxeIgBDSK37Qt .activeText3{fill:#000 !important}#mermaid-svg-FpyQxeIgBDSK37Qt .done0,#mermaid-svg-FpyQxeIgBDSK37Qt .done1,#mermaid-svg-FpyQxeIgBDSK37Qt .done2,#mermaid-svg-FpyQxeIgBDSK37Qt .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-FpyQxeIgBDSK37Qt .doneText0,#mermaid-svg-FpyQxeIgBDSK37Qt .doneText1,#mermaid-svg-FpyQxeIgBDSK37Qt .doneText2,#mermaid-svg-FpyQxeIgBDSK37Qt .doneText3{fill:#000 !important}#mermaid-svg-FpyQxeIgBDSK37Qt .crit0,#mermaid-svg-FpyQxeIgBDSK37Qt .crit1,#mermaid-svg-FpyQxeIgBDSK37Qt .crit2,#mermaid-svg-FpyQxeIgBDSK37Qt .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-FpyQxeIgBDSK37Qt .activeCrit0,#mermaid-svg-FpyQxeIgBDSK37Qt .activeCrit1,#mermaid-svg-FpyQxeIgBDSK37Qt .activeCrit2,#mermaid-svg-FpyQxeIgBDSK37Qt .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-FpyQxeIgBDSK37Qt .doneCrit0,#mermaid-svg-FpyQxeIgBDSK37Qt .doneCrit1,#mermaid-svg-FpyQxeIgBDSK37Qt .doneCrit2,#mermaid-svg-FpyQxeIgBDSK37Qt .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-FpyQxeIgBDSK37Qt .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-FpyQxeIgBDSK37Qt .milestoneText{font-style:italic}#mermaid-svg-FpyQxeIgBDSK37Qt .doneCritText0,#mermaid-svg-FpyQxeIgBDSK37Qt .doneCritText1,#mermaid-svg-FpyQxeIgBDSK37Qt .doneCritText2,#mermaid-svg-FpyQxeIgBDSK37Qt .doneCritText3{fill:#000 !important}#mermaid-svg-FpyQxeIgBDSK37Qt .activeCritText0,#mermaid-svg-FpyQxeIgBDSK37Qt .activeCritText1,#mermaid-svg-FpyQxeIgBDSK37Qt .activeCritText2,#mermaid-svg-FpyQxeIgBDSK37Qt .activeCritText3{fill:#000 !important}#mermaid-svg-FpyQxeIgBDSK37Qt .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-FpyQxeIgBDSK37Qt g.classGroup text{fill:#9370db;stroke:none;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family);font-size:10px}#mermaid-svg-FpyQxeIgBDSK37Qt g.classGroup text .title{font-weight:bolder}#mermaid-svg-FpyQxeIgBDSK37Qt g.clickable{cursor:pointer}#mermaid-svg-FpyQxeIgBDSK37Qt g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-FpyQxeIgBDSK37Qt g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-FpyQxeIgBDSK37Qt .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-FpyQxeIgBDSK37Qt .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-FpyQxeIgBDSK37Qt .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-FpyQxeIgBDSK37Qt .dashed-line{stroke-dasharray:3}#mermaid-svg-FpyQxeIgBDSK37Qt #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-FpyQxeIgBDSK37Qt #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-FpyQxeIgBDSK37Qt #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-FpyQxeIgBDSK37Qt #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-FpyQxeIgBDSK37Qt #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-FpyQxeIgBDSK37Qt #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-FpyQxeIgBDSK37Qt #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-FpyQxeIgBDSK37Qt #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-FpyQxeIgBDSK37Qt .commit-id,#mermaid-svg-FpyQxeIgBDSK37Qt .commit-msg,#mermaid-svg-FpyQxeIgBDSK37Qt .branch-label{fill:lightgrey;color:lightgrey;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-FpyQxeIgBDSK37Qt .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-FpyQxeIgBDSK37Qt .slice{font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-FpyQxeIgBDSK37Qt g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-FpyQxeIgBDSK37Qt g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-FpyQxeIgBDSK37Qt g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-FpyQxeIgBDSK37Qt g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-FpyQxeIgBDSK37Qt g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-FpyQxeIgBDSK37Qt g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-FpyQxeIgBDSK37Qt .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-FpyQxeIgBDSK37Qt .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-FpyQxeIgBDSK37Qt .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-FpyQxeIgBDSK37Qt .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-FpyQxeIgBDSK37Qt .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-FpyQxeIgBDSK37Qt .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-FpyQxeIgBDSK37Qt .edgeLabel text{fill:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:‘trebuchet ms’, verdana, arial;font-family:var(–mermaid-font-family)}#mermaid-svg-FpyQxeIgBDSK37Qt .node circle.state-start{fill:black;stroke:black}#mermaid-svg-FpyQxeIgBDSK37Qt .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-FpyQxeIgBDSK37Qt #statediagram-barbEnd{fill:#9370db}#mermaid-svg-FpyQxeIgBDSK37Qt .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-FpyQxeIgBDSK37Qt .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-FpyQxeIgBDSK37Qt .statediagram-state .divider{stroke:#9370db}#mermaid-svg-FpyQxeIgBDSK37Qt .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-FpyQxeIgBDSK37Qt .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-FpyQxeIgBDSK37Qt .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-FpyQxeIgBDSK37Qt .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-FpyQxeIgBDSK37Qt .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-FpyQxeIgBDSK37Qt .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-FpyQxeIgBDSK37Qt .note-edge{stroke-dasharray:5}#mermaid-svg-FpyQxeIgBDSK37Qt .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-FpyQxeIgBDSK37Qt .error-icon{fill:#522}#mermaid-svg-FpyQxeIgBDSK37Qt .error-text{fill:#522;stroke:#522}#mermaid-svg-FpyQxeIgBDSK37Qt .edge-thickness-normal{stroke-width:2px}#mermaid-svg-FpyQxeIgBDSK37Qt .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-FpyQxeIgBDSK37Qt .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-FpyQxeIgBDSK37Qt .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-FpyQxeIgBDSK37Qt .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-FpyQxeIgBDSK37Qt .marker{fill:#333}#mermaid-svg-FpyQxeIgBDSK37Qt .marker.cross{stroke:#333} :root { --mermaid-font-family: “trebuchet ms”, verdana, arial;} #mermaid-svg-FpyQxeIgBDSK37Qt { color: rgba(0, 0, 0, 0.75); font: ; }
栈帧
局部变量表
操作数栈
动态连接
完成出口
- 局部变量表
局部变量表中存储当前执行的方法中创建的8大基本数据类型,对自身的引用以及对堆中对象的引用
- 操作数栈
如果JVM的执行引擎相当于计算器的CPU的话,那么操作数栈相当于CPU的寄存器,操作数栈中存放了当前正在执行的指令以及结果(比如加法运算会先出栈再入栈)操作数栈中的命令会被JVM执行引擎执行
引申
如果读懂了字节码,就理解了一些优化的原则,比如
int i=0;
int y=10;
最后
即使是面试跳槽,那也是一个学习的过程。只有全面的复习,才能让我们更好的充实自己,武装自己,为自己的面试之路不再坎坷!今天就给大家分享一个Github上全面的Java面试题大全,就是这份面试大全助我拿下大厂Offer,月薪提至30K!
我也是第一时间分享出来给大家,希望可以帮助大家都能去往自己心仪的大厂!为金三银四做准备!
一共有20个知识点专题,分别是:
Dubbo面试专题
JVM面试专题
Java并发面试专题
Kafka面试专题
MongDB面试专题
MyBatis面试专题
MySQL面试专题
Netty面试专题
RabbitMQ面试专题
Redis面试专题
Spring Cloud面试专题
SpringBoot面试专题
zookeeper面试专题
常见面试算法题汇总专题
计算机网络基础专题
设计模式专题
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
需要这份系统化的资料的朋友,可以添加V获取:vip1024b (备注Java)
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
3422066329)]
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
需要这份系统化的资料的朋友,可以添加V获取:vip1024b (备注Java)
[外链图片转存中…(img-H5ToisVG-1713422066329)]
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!