In the list below, which subclass(es) of Component cannot be directly instantiated: a) Panel b) Dialog c) Container d) Frame The answer is Container. But why the Container can not be instantiated directly?
Container was an abstract class in Java 1.0 and 1.1,but for the Java JDK1.2 it is no longer declared abstract.
Joined: Nov 22, 2008
Laura, All the options you have given can be instantiated. In fact (d) is also correct. You can try this out: Container c = new Container(); Ramani has correctly pointed out that Conatiner is no longer an abstract class. Hope this helps -sampaths
Joined: Sep 14, 2000
Thank you! sampaths77! you means this question only correct in the JDK1.0 but not correct for now.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com