}在使用註解時給成員變數賦值如下:@AnnotationA(id=3,msg=“hello annotation”)public class Test {}需要注意的是,在註解中定義屬性時它的型別必須是 8 種基本資料型別外加 類、介面、注...