标签:helloworld 对象 实例 java
package com.ray.object;
/**
* 不用main方法,也可以打印Hello World!
*
* @author ray
* @since 2015-04-29
* @version 1.0
*
*/
public class Person {
static {
System.out.println("Hello World!");
System.exit(0);
}
// 由于使用ide,有main方法执行更方便
public static void main(String[] args) {
}
}
标签:helloworld 对象 实例 java
原文地址:http://blog.csdn.net/raylee2007/article/details/45362745