• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

AWT?

 
Ranch Hand
Posts: 5415
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
again form maha's test
47. In the list below, which subclass(es) of Component cannot be directly instantiated:
a) Panel
b) Dialog
c) Container
d) Frame
I think ans is b, c
evalution - WRONG
answer not given
CMIW
TIA
 
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe the answer is Container objects can not be instantiated. If you look up the API on awt components, you can find the answer yourself.
 
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why dialog??
try typing Dialog x=new Dialog(this);
works fine.
like Frame.
 
R K Singh
Ranch Hand
Posts: 5415
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Shivaji Marathe:
I believe the answer is Container objects can not be instantiated. If you look up the API on awt components, you can find the answer yourself.


Hi thanks
thats why I said b,c ..
but actually I was thinking that for dialog u need a parent window so u can not create directly ... but I think answer was suppose to check the knowledge abt abstract classes of AWT
AW Thanks !! let us close this topic..
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic