<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>JavaSE基础 on 杨刚的个人网站</title>
    <link>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/</link>
    <description>Recent content in JavaSE基础 on 杨刚的个人网站</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <copyright>Copyright © 2018-2025 GradyYoung. All rights reserved.</copyright>
    <lastBuildDate>Wed, 12 Feb 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>1、java语言概述</title>
      <link>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/230f6847/</link>
      <pubDate>Sat, 11 Nov 2023 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/230f6847/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;java基础知识图解 
    &lt;div id=&#34;java基础知识图解&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#java%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86%e5%9b%be%e8%a7%a3&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;






&lt;figure&gt;
      &lt;img
    class=&#34;my-0 rounded-md&#34;
    loading=&#34;lazy&#34;
    decoding=&#34;async&#34;
    fetchpriority=&#34;low&#34;
    alt=&#34;说明: untitle.png&#34;
    data-zoom-src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/230f6847/image/202109181111062.jpg&#34;
    src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/230f6847/image/202109181111062.jpg&#34;&gt;

  
&lt;/figure&gt;
&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>2、java基础语法（上）：变量与运算符</title>
      <link>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/447cf7f6/</link>
      <pubDate>Fri, 19 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/447cf7f6/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;关键字与保留字 
    &lt;div id=&#34;关键字与保留字&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e5%85%b3%e9%94%ae%e5%ad%97%e4%b8%8e%e4%bf%9d%e7%95%99%e5%ad%97&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;

&lt;h3 class=&#34;relative group&#34;&gt;关键字 
    &lt;div id=&#34;关键字&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e5%85%b3%e9%94%ae%e5%ad%97&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h3&gt;
&lt;p&gt;定义：被Java语言赋予了特殊含义，用做专门用途的字符串（单词）&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>3、Java基础语法（下）：程序流程控制</title>
      <link>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/3427b306/</link>
      <pubDate>Fri, 19 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/3427b306/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;程序流程控制 
    &lt;div id=&#34;程序流程控制&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e7%a8%8b%e5%ba%8f%e6%b5%81%e7%a8%8b%e6%8e%a7%e5%88%b6&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;






&lt;figure&gt;
      &lt;img
    class=&#34;my-0 rounded-md&#34;
    loading=&#34;lazy&#34;
    decoding=&#34;async&#34;
    fetchpriority=&#34;low&#34;
    alt=&#34;说明: untitle.png&#34;
    data-zoom-src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/3427b306/image/202109181115362.jpg&#34;
    src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/3427b306/image/202109181115362.jpg&#34;&gt;

  
&lt;/figure&gt;
&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>4、数组</title>
      <link>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/2192a2c5/</link>
      <pubDate>Thu, 04 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/2192a2c5/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;数组的概述 
    &lt;div id=&#34;数组的概述&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e6%95%b0%e7%bb%84%e7%9a%84%e6%a6%82%e8%bf%b0&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;






&lt;figure&gt;
      &lt;img
    class=&#34;my-0 rounded-md&#34;
    loading=&#34;lazy&#34;
    decoding=&#34;async&#34;
    fetchpriority=&#34;low&#34;
    alt=&#34;说明: untitle.png&#34;
    data-zoom-src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/2192a2c5/image/202109181136776.gif&#34;
    src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/2192a2c5/image/202109181136776.gif&#34;&gt;

  
&lt;/figure&gt;
&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>5、面向对象编程（上）</title>
      <link>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/014aa577/</link>
      <pubDate>Fri, 19 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/014aa577/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;面向对象内容的三条主线 
    &lt;div id=&#34;面向对象内容的三条主线&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%e5%86%85%e5%ae%b9%e7%9a%84%e4%b8%89%e6%9d%a1%e4%b8%bb%e7%ba%bf&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;1.Java类及类的成员：属性、方法、构造器；代码块、内部类&lt;/strong&gt;&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>6、面向对象编程（中）</title>
      <link>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/66d6513f/</link>
      <pubDate>Fri, 19 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/66d6513f/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;关键字：static（静态） 
    &lt;div id=&#34;关键字static静态&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e5%85%b3%e9%94%ae%e5%ad%97static%e9%9d%99%e6%80%81&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;

&lt;h3 class=&#34;relative group&#34;&gt;作用范围 
    &lt;div id=&#34;作用范围&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e4%bd%9c%e7%94%a8%e8%8c%83%e5%9b%b4&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h3&gt;
&lt;p&gt;可以用来修饰的结构：主要用来修饰类的内部结构&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>7、面向对象编程（下）</title>
      <link>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/ee390caf/</link>
      <pubDate>Fri, 19 Jan 2024 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/ee390caf/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;interface接口 
    &lt;div id=&#34;interface接口&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#interface%e6%8e%a5%e5%8f%a3&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;接口，实际上可以看做是一种规范&lt;/strong&gt;&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>8、异常处理</title>
      <link>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/c0828172/</link>
      <pubDate>Wed, 12 Feb 2025 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/c0828172/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;异常的体系结构 
    &lt;div id=&#34;异常的体系结构&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e5%bc%82%e5%b8%b8%e7%9a%84%e4%bd%93%e7%b3%bb%e7%bb%93%e6%9e%84&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;java.lang.Throwable&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;java.lang.Error&lt;/code&gt;：一般不编写针对性的代码进行处理，发生后，会直接导致JVM不可处理。&lt;/li&gt;
&lt;li&gt;&lt;code&gt;java.lang.Exception&lt;/code&gt;：可以进行异常的处理
&lt;ul&gt;
&lt;li&gt;编译时异常(&lt;strong&gt;checked受检异常&lt;/strong&gt;)
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;IOException&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;FileNotFoundException&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ClassNotFoundException&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;运行时异常(&lt;strong&gt;unchecked非受检异常&lt;/strong&gt;，&lt;code&gt;RuntimeException&lt;/code&gt;)
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;NullPointerException&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ArrayIndexOutOfBoundsException&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ClassCastException&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;NumberFormatException&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;InputMismatchException&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ArithmeticException&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;






&lt;figure&gt;
      &lt;img
    class=&#34;my-0 rounded-md&#34;
    loading=&#34;lazy&#34;
    decoding=&#34;async&#34;
    fetchpriority=&#34;low&#34;
    alt=&#34;说明: untitle.png&#34;
    data-zoom-src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/c0828172/image/202109181147955.gif&#34;
    src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/c0828172/image/202109181147955.gif&#34;&gt;

  
&lt;/figure&gt;
&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>9、单元测试</title>
      <link>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/747f63d4/</link>
      <pubDate>Thu, 14 Dec 2023 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/747f63d4/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;Java中的JUnit单元测试 
    &lt;div id=&#34;java中的junit单元测试&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#java%e4%b8%ad%e7%9a%84junit%e5%8d%95%e5%85%83%e6%b5%8b%e8%af%95&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;Java原生并没有提供单元测试的方法，一般的简单测试使用&lt;code&gt;main&lt;/code&gt;方法进行测试，但是如果对于复杂的测试，则需要使用第三方框架来实现，例如&lt;code&gt;JUnit&lt;/code&gt;框架&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>4.1、排序算法</title>
      <link>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/930c988f/</link>
      <pubDate>Sat, 11 Nov 2023 00:00:00 +0000</pubDate>
      
      <guid>https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/930c988f/</guid>
      <description>&lt;p&gt;






&lt;figure&gt;
      &lt;img
    class=&#34;my-0 rounded-md&#34;
    loading=&#34;lazy&#34;
    decoding=&#34;async&#34;
    fetchpriority=&#34;low&#34;
    alt=&#34;说明: AElFTkSuQmCC.png&#34;
    data-zoom-src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/930c988f/image/202109181145252.gif&#34;
    src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/930c988f/image/202109181145252.gif&#34;&gt;

  
&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;






&lt;figure&gt;
      &lt;img
    class=&#34;my-0 rounded-md&#34;
    loading=&#34;lazy&#34;
    decoding=&#34;async&#34;
    fetchpriority=&#34;low&#34;
    alt=&#34;说明: untitle.png&#34;
    data-zoom-src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/930c988f/image/202109181145178.gif&#34;
    src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/930c988f/image/202109181145178.gif&#34;&gt;

  
&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;






&lt;figure&gt;
      &lt;img
    class=&#34;my-0 rounded-md&#34;
    loading=&#34;lazy&#34;
    decoding=&#34;async&#34;
    fetchpriority=&#34;low&#34;
    alt=&#34;说明: untitle.png&#34;
    data-zoom-src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/930c988f/image/202109181145169.gif&#34;
    src=&#34;https://www.ygang.top/posts/3ab7256e/80aacaea/f742d77f/930c988f/image/202109181145169.gif&#34;&gt;

  
&lt;/figure&gt;
&lt;/p&gt;

&lt;h2 class=&#34;relative group&#34;&gt;冒泡排序 
    &lt;div id=&#34;冒泡排序&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e5%86%92%e6%b3%a1%e6%8e%92%e5%ba%8f&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;

&lt;h3 class=&#34;relative group&#34;&gt;思想： 
    &lt;div id=&#34;思想&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e6%80%9d%e6%83%b3&#34; aria-label=&#34;锚点&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h3&gt;
&lt;p&gt;1、一个无序的数组，n个元素，一共需要排序n-1轮&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
