疯狂java讲义没有运行起的一段代码示例

来源:互联网 发布:windows开发ios webapp 编辑:程序博客网 时间:2024/05/01 08:31
package br.com.waslleysouza.zz;


import java.lang.annotation.Annotation;
import java.lang.annotation.Annotation.*;


@Inheritable
class Base
{
}
public class InheritableTest extends Base{
    public InheritableTest() {
        super();
    }
    public static void main(String[] args)
    {
        System.out.println(InheritableTest.class.isAnnotationPresent(Inheritable.class)); 
    }
}
0 0