• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javacaps mock 2 Q:30

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Answer: A,C
Why C is correct? In API there is no addActionListener method for TextArea. Anybody explain please. If it can, how ?
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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]



------------------
 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic