博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Thinking in java notes
阅读量:6684 次
发布时间:2019-06-25

本文共 423 字,大约阅读时间需要 1 分钟。

hot3.png

local inner class can't have an access specifier because it is not part of the outer class, but have access to the final variables in the current code block and all the members of the enclosing class. And the anonymous inner class cannot have a named constructor but only an instance initializer such as

return new anonymousClass {  {    print("instance initializer");  }...}

转载于:https://my.oschina.net/simon203/blog/137673

你可能感兴趣的文章
脊柱关节病外周关节滑膜高表达的RANK/RANKL/OPG系统与炎症呈部分分离
查看>>
vue Cli 脚手架的搭建
查看>>
springboot配置Filter的两种方法
查看>>
tomcat 绑定ipv4端口
查看>>
substringToIndex substringFromIndex
查看>>
开源方案搭建可离线的精美矢量切片地图服务-1.开篇(附成果演示地址)
查看>>
web项目没有run on server时..
查看>>
邮票面值设计
查看>>
UVA 1613 K-Graph Oddity K度图着色 (构造)
查看>>
Docker版本(三)
查看>>
Spring---------ThreadLocal(线程变量副本)
查看>>
手风琴折叠菜单
查看>>
汇编小知识
查看>>
【leetcode】27.RemoveElement
查看>>
2017-2018-1 20155332实验三 实时系统报告
查看>>
JS验证身份证
查看>>
mysql备份与还原-mysqldump备份、mysql与source还原
查看>>
bzoj3122 [SDOI2013]随机数生成器
查看>>
最牛逼的开源机器学习框架,你知道几个
查看>>
git删除所有历史提交记录,只留下最新的干净代码
查看>>