package test;
import java.io.Serializable;
import java.util.function.Consumer;
/**
-
@author gaopei 17-9-22
/
public class Test
{public @interface Test1 {
}
public void LambdaTestSuccess()
{}
@Test1(excpected = ClassCastException.class)
public void testThrowException()
{}
public static void main(String[] args) {
}
}
在jdk源码中有很多的&操作符。其实这是向上类型转换。测试如上。可以编译通过。
文章知识点与官方知识档案匹配,可进一步学习相关知识Java技能树首页概览92729 人正在系统学习中 相关资源:天猫店铺设计数据分析谋库助手v1.2.12.8-统计分析代码类资源-CSDN…
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!