public class TestMain { /**
 * @param args
 */
public static void main(String[] args) {
// TODO Auto-generated method stub }}
我一直想知道@表示什么呀?还有@param args整体表示什么?

解决方案 »

  1.   


    /**  
         * 获取方法返回值名称  
         * @param method  
         * @return String  
         * @创建日期 Oct 7, 2008 9:52:38 AM  
         */  
        public String getMethodReturnTypeName(Method method){   
            return method.getReturnType().getName();   
        }  注释
      

  2.   

    Tag & Parameter Usage Applies to Since 
    @author name Describes an author.
    描述作者 Class, Interface   
    @version version Provides version entry. Max one per Class or Interface.
    版本条目,每个类或接口最多有一个 Class, Interface   
    @since since-text Describes since when this functionality has existed.
    描述这个功能块从何时有的 Class, Interface, Field, Method   
    @see reference Provides a link to other element of documentation.
    提供链接到其他文档元素的链接 Class, Interface, Field, Method   
    @param name description Describes a method parameter.
    描述一个参数 Method   
    @return description Describes the return value.
    描述返回值 Method   
    @exception classname description
    @throws classname description Describes an exception that may be thrown from this method.
    描述该方法可能抛出的异常 Method   
    @deprecated description Describes an outdated method.
    描述一个过期的方法 Method   
    {@inheritDoc} Copies the description from the overridden method.
    从复写方法出拷贝来得描述 Overriding Method 1.4.0 
    {@link reference} Link to other symbol.
    连到其他的引用 Class, Interface, Field, Method   
    {@value} Return the value of a static field.
    返回一个静态作用域的值 Static Field 1.4.0 
      

  3.   

    @param name description Describes a method parameter.
    描述一个参数 Method