0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

自留Java sliver

Posted at

1.Lambda式里捕获的变量必须是final或有效final,也就意味着它不可以被更改。
2.调查class和module的依存关系时可以使用以下代码
jdeps--list-deps/Java-show--module-resolution
3.switch句子必须声明变量的值,否则java会自动判断为null,导致在分支配对时出现抛出异常
4.抽象方法必须在子类中实现
image.png

5.创建数组时必须写好每个维度的值
6.C继承B,B继承A。C中写入super,意味着C可以访问A
7.Class在同时接触两个interface,并且这两个interface有相同的方法时,会发生编译错误。因为实行时无法区别究竟使用哪个接口。
8.10.0是double
9.X++为后置操作,先打印出原有的X值才会进行下次循环
10.listof表示不允许添加任意值
11.Localdate在没有特别声明的情况下显示的格式为yyyy-mm-dd
12.Pow指的是幂次方,比如mathpow(2,3)结果为8
13.模块a依赖模块b,用的是requires。访问test包,则用exports test

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?