Forums Register Login

javacaps mock 2 Q:30

+Pie Number of slices to send: Send

Answer: A,C
Why C is correct? In API there is no addActionListener method for TextArea. Anybody explain please. If it can, how ?
+Pie Number of slices to send: Send
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]



------------------
+Pie Number of slices to send: Send
 

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
Thank you my well lotioned goddess! Here, have my favorite tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1131 times.
Similar Threads
Behaviour of distributed web application.
java.awt.TextArea without border
Some confusing ones part 3
Please help identify 6 wrong answers
key events!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 04:29:30.