1 How can you create a listener class that receives events when the mouse is moved(single Answer)
A By extending MouseListener
B By implementing MouseListener
C By extending Mouse Motion Listener
D By implementing Mouse Motion Listener
E Either by extending Mouse Motion Listener  or extending MouseListener
F Either by implementing Mouse Motion Listener  or  implementing MouseListener2 Which are not containers in Java?(Multiple answer)
A ScollPane
B Canvas
C Scrollbar
D Applet
E Dialog3 You are assign the task of building a panel containing a TextArea at the top, a label directly below it, and a button directly below the label. If the three components are added directly to the panel, which layout manager can be panel use to ensure that the TextArea absorbs all of the free vertical space when the parel is resized?4 Please draw the correct symbols for the following concepts in UML class diagram. Class Interface, Generalization, Realization.5 For a binary tree,If the in-order traversal sequence is A B C D E F G and post-order traversal seuqence is B D C A F G E then what is its pre-order traversal sequence?
A. EGFACDB
B. EACBDGF
C. EAGCFBD
D. None of the above6 Which of the following items demonstrates the key characteristics of Web 2.0?
A Centralized
B User centered design
C Open
D Light Weight7 which is true about UML
A UML is a standardlized approach for use case modeling.
B UML supplies a set of notations used in the design of applications.
C UML is a methodology for designing and maintaining computer systems
D UML stands for Unified Method tcherLanguage.
8 When using the writeObject method to store the state of n object, how can you protect sensitive data from being accessed in the stored object?
A Implement the Object as Exteralizable
B Declare the sensitive fields as private transisent
C Declare the sensitive fields as static
D Declare the sensitive fields as protected9 You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be access in nature order, which interface provides that capability?
A java.uil.Map
B java.util.Collection
C java.util.List
D java.util.SortedSet
E java.util.SortedMap
F java.util.Set10 What will happen when you attempt to compile and run this code?abstract class Base{
   abstract public void myfunc();
public class Abs extends Base{
public static void main(String argv[])
{
   Abs a = new Abs();
   a.amethod();
}
public void amethod(){
   System.out.println("A method");;
}
}A The code will compile and run, printing out the words "A method"
B The compiler will complain errors in Base class.
C The code will compile but complain at run time that the  Base class has none abstract methods.
D The compiler will complain errors in Abs class.

解决方案 »

  1.   

    第二题 Canvas 应该也是容器类吧
      

  2.   

    五楼回答的很好,第三题我认为BorderLayout更好一些,web2.0那个我选D
      

  3.   

    7) UML=Unified Modeling Language D好像不对吧
      

  4.   

    6 Which of the following items demonstrates the key characteristics of Web 2.0? 
    A Centralized 
    B User centered design 
    C Open 
    D Light Weight 
    选【B】,这个不确定,呵呵,我不做WEB的 
    ================
    我也认为是B,以用户为中心进行设计是Web2.0的主要特点,其他的也都是Web2.0的特点,但是都是围绕这个为中心的设计原则和表现特征。
      

  5.   

    第二题错了  Dialog 是容器  查看了一下api  Dialog 继承 window类  window类继承container