(1)https://docs.oracle.com/javase/specs/jls/se7/html/index.html
(2)http://javaparser.org
(3)http://iteratrlearning.com/java/generics/2016/05/12/intersection-types-java-generics.html
(4)https://ruslanspivak.com/archives.html
(5)谁还没遇上过NoClassDefFoundError咋地——浅谈字节码生成与热部署
https://www.cnblogs.com/bethunebtj/p/9066060.html
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
enum Color{BLUE,GREEN;}
@Target(ElementType.LOCAL_VARIABLE)
@Documented
@interface FruitColor {
Color fruitColor() default Color.GREEN;
}
public class Test10{
public void test(){
@FruitColor final String appleName;
}
}
说明final关键字与注解可同时出现,也可以两者选其一
static{
{
int a = 1;
}
static{ // 出错
int a = 2;
}
}
{
{
int a = 3;
}
static{ // 出错
int a = 4;
}
}
public void m1(){
{
{
int a = 5;
}
}
static{} // 出错
}