Answer: Vector like collections : Questions « Utility Classes « SCJP
Java Source And Data Type
8.34.10.Answer: Vector like collections
A Hashtable requires String objects as keys(True/False).
Answer: hash table key
A Hashtable maintains object references in the order they were added(True/False).
Answer: hash table value reference
Both Vector and Hashtable use synchronized methods to avoid concurrent problems(True/False).
Answer: synchronization Vector and Hashtable
Which of the following are interfaces? [Check all correct answers]
Answer: collection interface and class
Which class is most similar to the Vector class?
Answer: Vector like collections
Which interface does Hashtable implement?
Answer: interface for Hashtable
Which of the following layout managers can be used to display nine Button objects at one time?
Which of the following are valid alignment parameters for a FlowLayout?
Answer: flow layout
Which of the following layout managers does not alter the height of a component?
Answer: layout and component height
For JPanel(new GridLayout(4,4,5,8)), the horizontal space between the buttons will be five pixels(True/False).
For GridLayout, the order in which the Button objects are added controls their position, filling a row first, from left to right (True/False).
Which variable in the GridBagConstraints class can use the constant named CENTER?
Which layout manager ensure that at least a portion of each button added is displayed even when the Panel has been resized to a small size?
Answer: layout manager
Which constant names are valid positioning options in the GridBagConstraints class?
Answer: using GridBagConstraints
Which of the following classes produce immutable objects?
Answer: immutable objects
What is the result(autoboxing and parameter passing)?
Answer: autoboxing and parameter passing
What happens when you compile and run code containing the following lines?
Answer: autoboxing and calculation
What is the output(substring and file extension name)?
Answer: substring and file extension name
What is the result(String reference)?
Answer: String reference
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.