• 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

Container classes ...

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

Is Container an abstract class ?
I read that it WAS in Java 1.0 and 1.1 but not in JDK 1.2
but again somewhere I read it is .. still !!
anyway we more use java.awt.Panel, java.applet.Applet in actual programs.. still want to know..
tks,
Ashish
 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
AFAIK, the container class now is NOT an abstract class

------------------
Regards,
Shree
 
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
True. According to the respective APIs, Container was abstract in 1.1, but not anymore in Java 2. However, I can't understand the rationale of this change. Does anyone have an insight?
Thanks,
Panagiotis.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi friend
Container is abstract class because one good example is it include the paint() method which we are using to doing some applet work and provide implementation.
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try checking out the API for questions like that. You can see the definition of all the classes and see if they are abstract, interfaces, final, etc... I have made it a point to look up all of these types of questions in the API, because it helps you get familiar with it and teaches you how to look things up and move up and down the heirarchies.
With that said, in the API container is defined as the following:

So you can see it is not abstract.
Bill
 
Onion rings are vegetable donuts. Taste this 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