//Java中的匿名对象:
//匿名对象就是没有名字的对象
class Student{
public void tell(){
System.out.println("Hello World");
}
}
public class HelloWorld {
public static void main(String[] args){
//Student stu = new Student();
//stu.tell();
//匿名对象
//对象只被使用一次就可以用匿名对象的特性
new Student().tell();
}
}