This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Don't get me started about those stupid light bulbs.
 
subject: javacaps mock 2 Q:30
 
Similar Threads
Please help identify 6 wrong answers
java.awt.TextArea without border
Some confusing ones part 3
key events!
Behaviour of distributed web application.