This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Mock Exam Errata and the fly likes javacaps mock 2 Q:30 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "javacaps mock 2 Q:30" Watch "javacaps mock 2 Q:30" New topic
Author

javacaps mock 2 Q:30

Haining Mu
Ranch Hand

Joined: Jun 01, 2001
Posts: 51

Answer: A,C
Why C is correct? In API there is no addActionListener method for TextArea. Anybody explain please. If it can, how ?
william shen
Ranch Hand

Joined: Jun 07, 2001
Posts: 60
Hi,Haining:
if you check the API of component class,you will find the addActionListener,because the TextField is a subclass of the component right!so the TextField do not override the addActionListener method.This action will response to the enter key!
Hope this will help you!
Originally posted by Haining Mu:
[B]
Answer: A,C
Why C is correct? In API there is no addActionListener method for TextArea. Anybody explain please. If it can, how ?[/B]


------------------
Jyotsna Umesh
Ranch Hand

Joined: May 09, 2001
Posts: 94
Originally posted by Haining Mu:
[B]
Answer: A,C
Why C is correct? In API there is no addActionListener method for TextArea. Anybody explain please. If it can, how ?[/B]

Can somebody please explain why D option is not correct becoz textarea can be scrolled using left and right arrow keys.
Thanx
Jyotsna
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javacaps mock 2 Q:30