1)A copy of the original event is passed into a listener method. true/false.
Why?
2)an object obj1 can access an object obj2 that is eligible for garbage
collection, then obj1 is also eligible for garbage collection.
Object ob1=new Object();
Object ob2=new Object();
ob1=null;
ob2=ob1;
Whether ob2 can be gc?
3)Given a TextArea using a proportional pitch font and constructed like this:
TextField t = new TextArea("12345", 5, 5);
Which statement is true?
A. The displayed width shows exactly five characters on each line unless
otherwise constrained.
B. The displayed height is five lines unless otherwise constrained.
C. The maximum number of characters in a line will be five.
D. The user will be able to edit the character
string.
E. The displayed string can use multiple fonts.
Answer is B,D.I code prog.I find only D is ok.Because TextArea t's width and
height can be changed when you edit text in t.If I am wrong.Please correct.
Thank you.