Apply Your Knowledge

Essay Questions

1:Describe how you chose to manage the data in a file with the RandomAccessFile class.
2:Describe how you used TCP/IP to connect the client to the server.
3:Describe how you designed the GUI with the JComponent class, especially its subclasses.
4:Describe how you used Design Patterns in your application's design.

Answers to Essay Questions

A1: Instances of this class support both reading and writing to a random access file. The data was read and written to file in its native primitive data type. Many database programs use byte streams, but they were not used here because it is more powerful to keep the data types. You also used a kind of cursor, or index, called the file pointer to keep track of where the file ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.