Just out of curiosity , has anyone used the new I/O API in
Java 1.4 (java.nio) and passed this certification or are they saving this for the new 1.4 Sun Certified Java Programmers ?.
I think they'll have it a lot easier.
java.nio has been described in Java in a Nutshell as being "an entirely new API for high-performance, nonblocking I/O and networking.
It has Client-side Networking capabilities, Server-side Networking ... The java.io and java.net APIs allow only blocking I/O so servers using these APIs must use a separate
thread for each client. For large scale-servers with many clients , this approach does not scale well.The new I/O API allows most channels (but not FileChannel) to be used in Non-blocking mode and allows a single thread to manage all pending connections.."
" The FileChannel class allows Random Access to a file....has the ability to lock a file or a portion of a file against all concurrent access(an exclusive lock) or against concurrent writes(a shared lock)..."
Some questions as I return to my RMI, soon to be threaded solution :
1) Does one have to serialize the Random Access file in order to remotely invoke methods on it?
2)If so how does one do that? I've already implemented Serializable in the Data class but suspect the file is not implicitly Serializable.
3) Some of the methods in the Data class are invoked via Reflection from the GUI classes. I've come across some material that suggests this is not a good idea.
One bit of advice: if you are aiming to do the
SCJD do it immediately after passing the
SCJP. It helps with continuity.I passed the SCJP in 1999.
Notes from an aspiring ,bloodied and tearful Java Developer