diff --git "a/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/1.\345\237\272\346\234\254\350\257\255\346\263\225/Annotation.json" "b/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/1.\345\237\272\346\234\254\350\257\255\346\263\225/Annotation.json" new file mode 100644 index 0000000000000000000000000000000000000000..a7f12a0d678cbe7ef207d1271ab2b7132cd6d0c8 --- /dev/null +++ "b/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/1.\345\237\272\346\234\254\350\257\255\346\263\225/Annotation.json" @@ -0,0 +1,7 @@ +{ + "type": "code_options", + "author": "clong", + "source": "Annotation.md", + "exercise_id": "", + "notebook_enable": true +} \ No newline at end of file diff --git "a/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/1.\345\237\272\346\234\254\350\257\255\346\263\225/Annotation.md" "b/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/1.\345\237\272\346\234\254\350\257\255\346\263\225/Annotation.md" new file mode 100644 index 0000000000000000000000000000000000000000..43da993c53b2c7ee435aad41d720354e1a7ebe29 --- /dev/null +++ "b/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/1.\345\237\272\346\234\254\350\257\255\346\263\225/Annotation.md" @@ -0,0 +1,32 @@ +# Annotation + + +下列关于 `Annotation` 的说法错误的是: + + + +## 答案 + +``` +注解不会被编译成class文件 +``` + +## 选项 + +### A + +``` +注解也被称为元数据,即以形式化的方式向代码中添加数据 +``` + +### B + +``` +注解的定义: publc @interface Test{} +``` + +### C + +``` +java目前仅支持5种元注解,元注解是对注解的注解 +``` diff --git "a/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/1.\345\237\272\346\234\254\350\257\255\346\263\225/config.json" "b/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/1.\345\237\272\346\234\254\350\257\255\346\263\225/config.json" index bf13a5eac73dbcfecd4e437b0fc6246ed9310bd9..88f134b4235b15acfa2c9e6932e0c4c38659487e 100644 --- "a/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/1.\345\237\272\346\234\254\350\257\255\346\263\225/config.json" +++ "b/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/1.\345\237\272\346\234\254\350\257\255\346\263\225/config.json" @@ -19,6 +19,6 @@ } } ], - "export": [], + "export": ["Annotation.json"], "title": "基本语法" } \ No newline at end of file diff --git "a/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/6.\351\231\220\345\256\232\351\207\215\345\206\231\347\210\266\347\261\273\346\226\271\346\263\225\357\274\232@Override/config.json" "b/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/6.\351\231\220\345\256\232\351\207\215\345\206\231\347\210\266\347\261\273\346\226\271\346\263\225\357\274\232@Override/config.json" deleted file mode 100644 index 1cef70b19d6b2abcf6ec4451939eb80e10cd731e..0000000000000000000000000000000000000000 --- "a/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/6.\351\231\220\345\256\232\351\207\215\345\206\231\347\210\266\347\261\273\346\226\271\346\263\225\357\274\232@Override/config.json" +++ /dev/null @@ -1,7 +0,0 @@ -{ - "node_id": "java-2d843168cf7c4d45b9e10bef5dd38424", - "keywords": [], - "children": [], - "export": [], - "title": "限定重写父类方法:@Override" -} \ No newline at end of file diff --git "a/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/7.Java 9\345\242\236\345\274\272\347\232\204@Deprecated/config.json" "b/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/7.Java 9\345\242\236\345\274\272\347\232\204@Deprecated/config.json" deleted file mode 100644 index f971c4c060ad44cf5b3439eadc4029a66a67c21e..0000000000000000000000000000000000000000 --- "a/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/7.Java 9\345\242\236\345\274\272\347\232\204@Deprecated/config.json" +++ /dev/null @@ -1,7 +0,0 @@ -{ - "node_id": "java-2c4700ed3f94441a89ae1ce9cefb2acc", - "keywords": [], - "children": [], - "export": [], - "title": "Java 9增强的@Deprecated" -} \ No newline at end of file diff --git "a/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/8.\346\212\221\345\210\266\347\274\226\350\257\221\345\231\250\350\255\246\345\221\212\357\274\232@SuppressWarnings/config.json" "b/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/8.\346\212\221\345\210\266\347\274\226\350\257\221\345\231\250\350\255\246\345\221\212\357\274\232@SuppressWarnings/config.json" deleted file mode 100644 index 9585e76875e4751914bfafe05add2c67485e70ec..0000000000000000000000000000000000000000 --- "a/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/8.\346\212\221\345\210\266\347\274\226\350\257\221\345\231\250\350\255\246\345\221\212\357\274\232@SuppressWarnings/config.json" +++ /dev/null @@ -1,7 +0,0 @@ -{ - "node_id": "java-53d85a25b0254b2ab2912c3ef05f9b44", - "keywords": [], - "children": [], - "export": [], - "title": "抑制编译器警告:@SuppressWarnings" -} \ No newline at end of file diff --git "a/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/9.\342\200\234\345\240\206\346\261\241\346\237\223\342\200\235\350\255\246\345\221\212\344\270\216Java 9\345\242\236\345\274\272\347\232\204@SafeVarargs/config.json" "b/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/9.\342\200\234\345\240\206\346\261\241\346\237\223\342\200\235\350\255\246\345\221\212\344\270\216Java 9\345\242\236\345\274\272\347\232\204@SafeVarargs/config.json" deleted file mode 100644 index 2093cee71c9c8be1f0b634977ce1b743b89641cb..0000000000000000000000000000000000000000 --- "a/data/2.Java\344\270\255\351\230\266/10.\346\263\250\350\247\243/9.\342\200\234\345\240\206\346\261\241\346\237\223\342\200\235\350\255\246\345\221\212\344\270\216Java 9\345\242\236\345\274\272\347\232\204@SafeVarargs/config.json" +++ /dev/null @@ -1,7 +0,0 @@ -{ - "node_id": "java-13e41a9fcdc348b180c14ff7c50883f3", - "keywords": [], - "children": [], - "export": [], - "title": "“堆污染”警告与Java 9增强的@SafeVarargs" -} \ No newline at end of file