你可能感兴趣的试题
内部类的类名只能在定义它的类或程序段中或在表达式内部匿名使用 内部类可以使用它所在类的静态成员变量和实例成员变量 内部类不可以用abstract 修饰符定义为抽象类 内部类可作为其他类的成员,而且可访问它所在类的成员
package testpackage;
public class Test import java. io. *;
package testpaekage;
public class Test import java.io.*;
class Person
public class Test import java.io.*;
import java. awt.*;
public class Test
Timer ActionListener listener 匿名
package testpackage;
publicClass Test import java.io.*;
package testpackage:
publicClass Test import java.io.*;
Class Person
publicClass Test import java.io.*;
import java.awt.*;
publicClass Test
Timer ActionListener listener 匿名
ActionListener listener=newActionListener() public void actionPerformed(ActionEvent event) … Timer t=new Timer(interval,listener); t.start(); Timer ActionListener listener 匿名
ActionListener listener=newActionListener() publ ic void actionPerformed(ActionEvent event) ... Timer t=new Timer(interval, listener); t. start();Timer ActionListener listener 匿名
Timer ActionListener listener 匿名
package testpackage; publicClass Test{} import javi*; package testpackage: publicClass Test{} import javi*; Class Person{} publicClass Test{} import javi*; import javaw*; publicClass Test{}
package testpackage;
public class Test import java.io.* ;
package testpackage;
public class Test import java.io.*;
class Person
public class Test import java.io.*;
import java.awt.*;
public class Test
repaint println paint show
package testpackage;
public class Test{ } import java.io.* ;
package testpackage;
public class Test{ } import java.io.*;
class Person{ }
public class Test{ } import java.io.*;
import java.awt.*;
public class Test{ }