Java - Packages - Interview Questions and Answers on java.awt package

Q1. Name few classes that extend Component class ?

Ans.http://www.buggybread.com/2015/03/java-awt-classes-that-extend-component.html

Q2. Name few classes introduced with Java 6 within java.awt ?

Ans. http://www.buggybread.com/2015/03/migrating-to-java-6-new-classes.html

Q3. Name few classes that implements Paint interface ?

Ans.http://www.buggybread.com/2015/03/java-awt-classes-that-implement-paint.html

Q4. Name few classes that implement Shape interface ?

Ans. http://www.buggybread.com/2015/03/java-awt-classes-that-implement-shape.html

Q5. Name few classes that implement Composite interface ?

Ans. http://www.buggybread.com/2015/03/java-awt-classes-that-implement_46.html

Q6. Name few classes of package java.awt?

Ans.[MimeTypeParseException, ScrollPaneAdjustable, ContainerOrderFocusTraversalPolicy, TextLayout.CaretPolicy, PageAttributes.PrintQualityType, LineBreakMeasurer, SystemColor, AWTError, MenuShortcut, EventQueue, MouseDragGestureRecognizer, DropTargetListener, Button, CheckboxMenuItem, GlyphVector, AWTEventMulticaster, GraphicsDevice.WindowTranslucency, GraphicsEnvironment, ImageCapabilities, DropTargetAdapter, PaintContext, ContainerAdapter, InvalidDnDOperationException, HeadlessException, ActiveEvent, TextHitInfo, WindowAdapter, FocusTraversalPolicy, DragSourceContext, Font, MouseListener, TrayIcon, Scrollbar, Window, Stroke, MouseEvent, Composite, DragSource, MenuComponent, LayoutManager, WindowEvent, Event, DragSourceDropEvent, KeyListener, DragSourceMotionListener, ItemListener, PrintGraphics, ComponentListener, TextArea, DragSourceDragEvent, ColorSpace, KeyAdapter, Label, MouseWheelListener, MenuContainer, DragGestureRecognizer, Container, GraphicsDevice, BorderLayout, Checkbox, Dialog, List, Polygon, TextComponent, DropTargetDragEvent, HierarchyBoundsListener, JobAttributes, KeyEventPostProcessor, Canvas, Color, AdjustmentEvent, DnDConstants, ComponentOrientation, Paint, GraphicAttribute, Component.BaselineResizeBehavior, Window.Type, InvocationEvent, MouseInfo, ActionListener, MouseWheelEvent, JobAttributes.DialogType, BufferCapabilities.FlipContents, PopupMenu, AWTException, WindowStateListener, CheckboxGroup, ClipboardOwner, GradientPaint, LinearGradientPaint, BufferedImage, TextMeasurer, KeyboardFocusManager, Component, ComponentAdapter, WindowFocusListener, Desktop.Action, DragSourceAdapter, CardLayout, NumericShaper, AWTKeyStroke, KeyEventDispatcher, DropTargetContext, MenuItem, AWTPermission, LayoutManager2, UnsupportedFlavorException, IllegalComponentStateException, TextLayout, DisplayMode, Autoscroll, TransformAttribute, CompositeContext, BufferCapabilities, HierarchyEvent, ContainerListener, DefaultKeyboardFocusManager, Robot, TrayIcon.MessageType, OpenType, ImageGraphicAttribute, GlyphMetrics, SystemTray, TextAttribute, PageAttributes.ColorType, Rectangle, PageAttributes.OriginType, MouseMotionListener, Image, HierarchyBoundsAdapter, GraphicsConfiguration, MultipleGradientPaint, InputEvent, FlavorMap, TextListener, DefaultFocusTraversalPolicy, InputMethodEvent, AWTEventListenerProxy, Adjustable, JobAttributes.DefaultSelectionType, ScrollPane, ComponentEvent, FocusListener, DropTargetDropEvent, SystemFlavorMap, FocusAdapter, Frame, Transparency, ItemEvent, Shape, GridBagLayout, AWTEventListener, DragSourceListener, DataFlavor, DragSourceEvent, GridLayout, PointerInfo, JobAttributes.SidesType, FontMetrics, SplashScreen, Toolkit, Menu, ContainerEvent, GraphicsConfigTemplate, TextEvent, WindowListener, DragGestureListener, MouseAdapter, PageAttributes.OrientationRequestedType, Dimension, GlyphJustificationInfo, FontFormatException, Graphics2D, Graphics, TexturePaint, Panel, LineMetrics, Clipboard, PageAttributes.MediaType, MediaTracker, GridBagConstraints, Choice, ActionEvent, Cursor, FocusEvent, StringSelection, HierarchyListener, Dialog.ModalExclusionType, AWTEvent, TextField, FlavorListener, MultipleGradientPaint.CycleMethod, RenderingHints.Key, GridBagLayoutInfo, LayoutPath, PrintJob, DropTargetEvent, JobAttributes.MultipleDocumentHandlingType, MouseMotionAdapter, MultipleMaster, MultipleGradientPaint.ColorSpaceType, FontRenderContext, DropTarget, BasicStroke, FlowLayout, Insets, DragGestureEvent, MenuBar, NumericShaper.Range, RenderingHints, PageAttributes, KeyEvent, SecondaryLoop, FlavorTable, InputMethodListener, DropTarget.DropTargetAutoScroller, ItemSelectable, FlavorEvent, PaintEvent, JobAttributes.DestinationType, AlphaComposite, Transferable, ShapeGraphicAttribute, Point, RadialGradientPaint, Dialog.ModalityType, Desktop, AdjustmentListener, FileDialog]