<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>内部类 on My Blog</title>
    <link>http://localhost:1313/tags/%E5%86%85%E9%83%A8%E7%B1%BB/</link>
    <description>Recent content from My Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    
    <managingEditor>3453434429@qq.com (ArenBase)</managingEditor>
    <webMaster>3453434429@qq.com (ArenBase)</webMaster>
    
    <copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright>
    
    <lastBuildDate>Sat, 23 May 2026 00:00:00 +0000</lastBuildDate>
    
    
    <atom:link href="http://localhost:1313/tags/%E5%86%85%E9%83%A8%E7%B1%BB/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>匿名内部类使用场景</title>
      <link>http://localhost:1313/post/%E5%8C%BF%E5%90%8D%E5%86%85%E9%83%A8%E7%B1%BB%E4%BD%BF%E7%94%A8%E5%9C%BA%E6%99%AF/</link>
      <pubDate>Sat, 23 May 2026 00:00:00 &#43;0000</pubDate>
      <author>3453434429@qq.com (ArenBase)</author>
      <guid>http://localhost:1313/post/%E5%8C%BF%E5%90%8D%E5%86%85%E9%83%A8%E7%B1%BB%E4%BD%BF%E7%94%A8%E5%9C%BA%E6%99%AF/</guid>
      <description>
        <![CDATA[<h1>匿名内部类使用场景</h1><p>作者：ArenBase（3453434429@qq.com）</p>
        
          <h1 id="匿名内部类使用场景笔记附练习成果">
<a class="header-anchor" href="#%e5%8c%bf%e5%90%8d%e5%86%85%e9%83%a8%e7%b1%bb%e4%bd%bf%e7%94%a8%e5%9c%ba%e6%99%af%e7%ac%94%e8%ae%b0%e9%99%84%e7%bb%83%e4%b9%a0%e6%88%90%e6%9e%9c"></a>
匿名内部类使用场景笔记（附练习成果）
</h1><h2 id="一什么是匿名内部类">
<a class="header-anchor" href="#%e4%b8%80%e4%bb%80%e4%b9%88%e6%98%af%e5%8c%bf%e5%90%8d%e5%86%85%e9%83%a8%e7%b1%bb"></a>
一、什么是匿名内部类？
</h2><p>匿名内部类是没有显式类名的内部类，它<strong>在定义的同时立即实例化</strong>，通常用于<strong>一次性使用</strong>的场景。语法格式：</p>
        
        <hr><p>本文2026-05-23首发于<a href='http://localhost:1313/'>My Blog</a>，最后修改于2026-05-23</p>]]>
      </description>
      
        <category>Java</category>
      
    </item>
    
  </channel>
</rss>
