Alien head

JAVA

Description: JAVA Computer Science
Number of Questions: 15
Created by:
Tags: JAVA Computer Science Java
Attempted 0/15 Correct 0 Score 0

Which is the basic GUI tool kit shipped with all versions of the JDK and is the part of JFC in java?

  1. Java Foundation Class

  2. Abstract Window Toolkit

  3. Drag and Drop

  4. Javax. accessibility

  5. Javax.swing


Correct Option: B
Explanation:

AWT is the basic GUI toolkit shipped with all versions of JDK and is part of the JFC.

Which contains classes for implementing various painting styles, complex shapes, fonts and colours in Java?

  1. Accessibility API

  2. Javax.accessibility

  3. Abstract Window Toolkit

  4. 2D API

  5. Javax.swing


Correct Option: D
Explanation:

It contains classes for implementing various painting styles, complex shapes, fonts and colours.

Which implement the corresponding listener interfaces containing more than one method in Java?

  1. Java Foundation Class

  2. Anonymous Classes

  3. Adapter Classes

  4. Inner Classes

  5. Javax.swing.event


Correct Option: C
Explanation:

The java provides Adapter classes that implement the corresponding listener interfaces containing more than one method.

Which is one of the more common metaphor used in graphical interfaces today in Java?

  1. Javax.swing

  2. Javax.accessibility

  3. 2D API

  4. Accessibility API

  5. Drag and Drop


Correct Option: E
Explanation:

It is one of the most common metaphor used in graphical interface today.

Which is a suit of libraries design to assist programmer in creating enterprise applications with java?

  1. Java Foundation Class

  2. Anonymous Class

  3. Inner Classes

  4. Adapter Classes

  5. ThebKeyEvent Class


Correct Option: A
Explanation:

JFC is a suit of libraries design to assist programmers in creating enterprise applications with Java.

Which provides an interface that allow assistive technologies to interact and communicate with JFC and AWT components in java?

  1. 2D API

  2. Abstract Window Toolkit

  3. Accessibility API

  4. Javax.swing

  5. Javax.swing.border


Correct Option: C
Explanation:

It provides an interface that allow assistive technologies to interact and communicate with JFC and AWT components.

Which are the classes that are not named in Java and the classes when you declare in a method do not need a name?

  1. Anonymous Classes

  2. Java Foundation Classes

  3. Inner Classes

  4. Adapter Classes

  5. Event Object


Correct Option: A
Explanation:

Classes that are not named are called anonymous classes and when you declare these classes in a method, don't need a name for these classes.

Which classes are declared within other classes and provide additional clarity to programs in Java?

  1. Anonymous Classes

  2. Inner Classes

  3. Adapter Classes

  4. The KeyEvent Class

  5. KEY_TYPED Event


Correct Option: B
Explanation:

Inner classes are classes that are declared within other classes and provide additional clarity to programs.

Which class defines the integer constants that can be used to identify them and is a subclass of InputEvent class in Java?

  1. The Window Event Class

  2. Javax.swing.event

  3. Javax.swing

  4. Java Foundation Class

  5. The MouseEvent Class


Correct Option: E
Explanation:

It defines the integer constants that can be used to identify them and is a subclass of InputEvent class.

Which event class defines integer constants that can be used to identify them and subclass of ComponentEvent class in Java?

  1. Java Foundation Class

  2. Javax.swing.event

  3. Javax.swing

  4. The WindowEvent Class

  5. Inner Class


Correct Option: D
Explanation:

This class defines integer constants that can be used to identify them and this class is a sub class of ComponentEvent class.

Which is generated when a component gains or loses input focus and is subclass of ComponentEvent class in java?

  1. The FocusEvent Class

  2. The InputEvent Class

  3. The ItemEvent Class

  4. The KeyEvent Class

  5. The MouseEvent Class


Correct Option: A
Explanation:

This class represents a FocusEvent which is generated when a component gains or loses input focus and this class is a subclass of ComponentEvent class.

Which classes instance describe text events which are generated by text fields and text areas when characters are entered by a user or program in java?

  1. The MouseEvent Class

  2. The TextEvent Class

  3. The WindowEvent Class

  4. Javax.swing.event

  5. Javax.swing


Correct Option: B
Explanation:

Instance of this class describe text events which are generated by text fields and text areas when characters are entered by a user or program.

Which event is generated when a check box or a list item is clicked or when a checkable menu item is selected or deselected in Java?

  1. The KeyEvent Class

  2. The MouseEvent

  3. The ItemEvent Class

  4. Javax.swing.event

  5. Javax.swing


Correct Option: C
Explanation:

The ItemEvent Class represents an ItemEvent which is generated when a check box or a list item is clicked or when a checkable menu item is selected or deselected.

Which abstract class is a subclass of ComponentEvent and is the superclass for component input events in Java?

  1. The ItemEvent Class

  2. The KeyEvent Class

  3. The MouseEvent Class

  4. The InputEvent Class

  5. Javax.swing.event


Correct Option: D
Explanation:

The abstract class InputEvent is a subclass of ComponentEvent and is the superclass for component input events.

Which event is generated when keyboard input occurs in Java?

  1. The KeyEvent Class

  2. The MouseEvent Class

  3. The WindowEvent Class

  4. Javax.swing.event

  5. Java Foundation Class


Correct Option: A
Explanation:

Here, a keyEvent is generated when keyboard input occur in the KeyEvent class.

+ View questions