public void fireVetoableChange(Object oldValue,Object newValue)
public void fireVetoableChange(String propertyName,Object newValue)
public void fireVetoableChange(String propertyName, Object oldValue ,Object newValue)throws PropertyVetoException
public void fireVetoableChange(String propertyName, Object oldValue ,Object newValue)
第1题:
A. public static void main();
B. public static void main( String args );
C. public static void main( String args[] );
D. public static void main( Graphics g );
E. public static boolean main( String a[] );
第2题:
public class ItemTest { private final mt id; public ItemTest(int id) { this.id = id; } public void updateId(int newId) { id = newId; } public static void main(String[] args) { ItemTest fa = new ItemTest(42); fa.updateId(69); System.out.println(fa.id); } } What is the result?()
第3题:
下列有关main()方法的签名正确的是哪些?()
第4题:
Object类的finalize()方法是如何声明的()。
第5题:
1. public class GC { 2. private Object o; 3. private void doSomethingElse(Object obj) { o = obj; } 4. public void doSomething() { 5. Object o = new Object(); 6. doSomethingElse(o); 7. o = new Object(); 8. doSomethingElse(null); 9.o=null; 10. } 11. } When the doSomething method is called, after which line does the Object created in line 5 become available for garbage collection?()
第6题:
声明Java独立应用程序main()方法时,正确表达是()。
第7题:
下列代码正确的是哪项?()
第8题:
Which three will compile and run without exception?()
第9题:
Line5
Line6
Line7
Line8
Line9
Line10
第10题:
public class Session implements Runnable, Clonable{ public void run ();public Object clone () ; }
public class Session extends Runnable, Cloneable { public void run() {/*dosomething*/} public Object clone() {/*make a copy*/} }
public abstract class Session implements Runnable, Clonable { public void run() {/*do something*/} public Object clone() {/*make a copy*/} }
public class Session implements Runnable, implements Clonable { public void run() {/*do something*/} public Object clone() {/*make a copy*/} }
第11题:
i = 3
Compilation fails.
A ClassCastException is thrown at line 6.
A ClassCastException is thrown at line 7.
第12题:
public void firePropertyChange(PropertyChangeListener l,String oldValue, String newValue)
public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public void firePropertyChange(PropertyChangeSupport changes)
public void firePropertyChange(Object oldValue, Object newValue)
第13题:
以下是JAVA中正确的入口方法是? ()
第14题:
public class Test { public static void main (String args) { class Foo { public int i = 3; } Object o = (Object) new Foo(); Foo foo = (Foo)o; System.out.printIn(foo. i); } } What is the result?()
第15题:
在j2ee中,以下是firevetoablechange方法的正确的原型的是()
第16题:
以下哪些方法在Object类中定义()。
第17题:
main方法是Java程序执行的入口点,关于main方法的方法头以下哪项是合法的()?
第18题:
在J2EE中,以下是firePropertyChange的原型,正确的是()。
第19题:
public class Test { public static void main(String args[]) { class Foo { public int i = 3; } Object o = (Object)new Foo(); Foo foo = (Foo)o; System.out.println(“i = “ + foo.i); } } What is the result?()
第20题:
Compilation will fail.
Compilation will succeed and the program will print “3”
Compilation will succeed but the program will throw a ClassCastException at line 6.
Compilation will succeed but the program will throw a ClassCastException at line 7.
第21题:
Line 5
Line 6
Line 7
Line 8
Line 9
Line 10
第22题:
Compilation fails.
An exception is thrown at runtime.
The attribute id in the Item object remains unchanged.
The attribute id in the Item object is modified to the new value.
A new Item object is created with the preferred value in the id attribute.
第23题:
public static void main(String[] args){}
public static void main(String args){}
public void main(String[] args){}
public static int main(String[] args){}
第24题:
public void fireVetoableChange(Object oldValue,Object newValue)
public void fireVetoableChange(String propertyName,Object newValue)
public void fireVetoableChange(String propertyName, Object oldValue ,Object newValue)throws PropertyVetoException
public void fireVetoableChange(String propertyName, Object oldValue ,Object newValue)