如果愿意,甚至可以混合使用这两种方式,让遗留代码用描述符指定ejb,而用注解声明新的EJB。
You can even mix approaches if you wish, allowing legacy code to specify EJBs using descriptors while new EJBs are declared with annotations.
对 OOAD 项目评分的一部分——每周给一次分——就是以他们的注解和代码风格为基础的。
Part of my OOAD project grades -- given weekly -- were based upon their javadoc comments and their code style.
定义注解的代码指定注解接受哪些命名元素(如果有的话)。
The code that defines the annotation specifies which named elements (if any) the annotation accepts.
So when you're writing a program in this language and many others, if you wanna make a comment to yourself or for other people who are reading this with their TF or fellow colleagues, you use what are called comments.
当你用这样那样的语言写程序时,为了便于自己或他人,阅读我们写的代码,我们必须得做一些注解,这就是所谓的注释。
应用推荐