Final Exam_A
.docDate: 11.05.2009 Name&Surname: Group: EN1-
- 
Final Exam
 
Advanced Java
- 
(4pt)Which of them are not type-wrapper classes(underline):
- 
Double b. String c. Integer d. char e. Character
 
 - 
 
- 
(4pt)Which of following classes are not implicitly related to Collection hierarchy:
- 
ArrayList b. Iterator c. TreeSet d. String e. Arrays
 
 - 
 
- 
(4pt)Select heavyweight components:
- 
ChangeListener b. JLabel c. JSlider d. JFrame e. Button
 
 - 
 
- 
(4pt)Underline Classes directly involved in network data transfer between two applications:
- 
Thread b. String c. ServerSocket d. StringTokenizer e. InputStream
 
 - 
 
- 
(4pt)Which of them are parameterized classes (Generic classes):
- 
public static < T extends Comparable< T > > T maximum( T x, T y, T z )
 - 
Serializable
 - 
Stack<E>
 - 
String
 - 
Comparable<T>
 
 - 
 
- 
(30pt)Explain each term, write how they can be used, less words more sense:
- 
type-wrapper classes
 - 
Condition
 - 
Adapter class
 - 
parameterized classes
 - 
class ServerSocket
 - 
Collections
 - 
GUI
 - 
Runnable
 - 
Nested class
 - 
javax.swing.Timer
 
 - 
 
- 
(10pt)Define each of following data structure elements:
- 
Linked List –
 - 
Stack –
 - 
Queue –
 - 
Tree –
 
 - 
 - 
(20pt)Write and execute thread which creates infinite loop that outputs every second current time.
 
- 
(20pt)GUI Layouts:
- 
(10)How layouts are used in frames.
 
 - 
 
- 
(10)Explain each of following layout definitions
 
- 
setLayout( null );
 - 
setLayout( new FlowLayout() );
 - 
setLayout( new BorderLayout() );
 - 
setLayout( new GridLayout(3,2) );
 
(bonus 10pt) Explain process of drawing map(matrix) on panel, list tools necessary to perform that.
By: Andrey
	Bogdanchikov	
