Discipline, Dedication and Determination define Destiny.
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
Discipline, Dedication and Determination define Destiny.
1. When I start my client, I just say "java client" (no mode specified at the start-up) and once the GUI comes up only, the user is allowed to choose either "local" or "remote". Is this fine?
2
3. I bind a factory object to the registry. So each client gets a new connection object. Are there chances for the factory to reuse the connection object for another client?
4. I have completed my lock and unlock. Not sure how to test it. Can I open 2 client windows and do the testing.
I tried inserting Thread.sleep(), but when I tried to work on both the clients' bookings alternately, the UIs froze.
I have defined my lock and unlock in Data class. But in my lock and unlock I refer to the HashSet (set of locked records) that is inside my Connection Code. Is this ok?
Do I need to make the table cells editable, since the users are not going to modify the table anyway?
For the table to reflect changes, I call the model object that would fetch the latest results from the DB and do table.setModel(model). Changes are reflected. Is this ok?
In my GUI, do I need to make room for a "detailed" search like a text field for the user to enter the criteria, Carrier='SpeedyAir',Origin='SFO'?
I am using a mix of Border, Flow and Grid layouts in my GUI. So I want to restrict the size of my main frame. Else, when modified, my components assume funny sizes. Is it a good idea to restrict the frame size?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
2. For the local Data class version, I have a LocalDataImpl (has a data object inside)that implements RemoteInterface (that has all the public methods of Data). All the method calls are passed to the Data class. This class takes care of the "local" access. My program is going to work even when I make my Data class implement this interface and take care of the local access. I feel the former way is better since that way I can have my Data class undisturbed.
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
Discipline, Dedication and Determination define Destiny.
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
Discipline, Dedication and Determination define Destiny.
Discipline, Dedication and Determination define Destiny.
In my lock() for example, it is like this:
if (RemoteData.locked == true) {
synchronized (RemoteData.lockedRecords) {
try {
RemoteData.lockedRecords.wait();
}
catch (Exception e ) {e.printStackTrace();}
}
}
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Discipline, Dedication and Determination define Destiny.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Discipline, Dedication and Determination define Destiny.
SCJP, SCJD, SCBCD, SCEA, IBM 665
Discipline, Dedication and Determination define Destiny.
Moreover, I thought it was mandatory for the user to switch modes inside the GUI
SCJP, SCJD, SCBCD, SCEA, IBM 665
Discipline, Dedication and Determination define Destiny.
"The program must allow the user to specify the location of the database" [...] Does this mean I need to let the user enter it as "C:\myjava\db.db"?
Another question: Can my Design Documentation (major design decisions)be in HTML or only txt?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
SCJP, SCJD, SCBCD, SCEA, IBM 665
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Discipline, Dedication and Determination define Destiny.
In my reservation panel, I have a combo-box for passenger(s) in addition to origin and destination. Here the user can choose the number of passengers.
While booking, the user is not asked separately as to how many are travelling.
Is this ok?
In my README.txt do I need to explain how to run the application in
other platforms also?
While importing packages, do I need to mention the full package(java.awt.Color)or can I just mention it as java.awt.*;
SCJP, SCJD, SCBCD, SCEA, IBM 665
I am not sure it affects the performance of your code someone else may be able to comment on that. But i believe, having the full name of the class in the import statements makes the reader of the code easily understand what classes have been used.
How many jar files am I allowed to create?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Discipline, Dedication and Determination define Destiny.
I agree with you in saying a flight can have 200 seats available. But no airline is going to give all the 200 seats to just 1 client at one shot. The group must do it as 2/3 bookings if they want say,30 seats. So I give the maximum number as '10' for passengers
The user must be able to book one or more seats on a chosen flight. If the flight cannot provide those seats, the user must be informed. It is not necessary to provide for live updates on multiple clients when new bookings are made at other clients
Does this mean i cannot have a seperate suncertify.server package?
SCJP, SCJD, SCBCD, SCEA, IBM 665
Also do we have to include the skeleton with the server jar though it is not used?
SCJP, SCJD, SCBCD, SCEA, IBM 665
Skeleton??. Dont create it at all. Use rmic with an option for creating stubs only.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Discipline, Dedication and Determination define Destiny.
1. I have specified in my README.txt to run it as a jar file. Can I also make it run as a class file?
2. Do I need to mention a word about starting the registry in README.txt, or just the server and the client start-up?
3. Do I need to document the use of access modifiers in my design, I mean, why I have used them the way I have?
4. I'm making a mention of the java version in my README.txt. Do I need to do it anywhere else? Btw, 1.4 is acceptable, right?
5. I have all the modified classes inside the "suncertify" folder, and all the original classes in the "original" folder. So while submitting the original classes (without modifications) that I received from
obtained from the Sun, do I need to correct the Javadoc comments in them too or submit them as they are.
1. I read in some post that a candidate was failed because he did not have the source files in the required location. In my case source.jar contains the source files. Apart from this, the suncertify package also contains the source files. Am I correct in doing this way?
2. Should the original files (that were given by the Sun) be as a JAR file or can it be in a folder like what I have now?
My command line to start up the server and client is java -jar client.jar and java -jar server.jar (with proper arguments ofcourse). Is this fine?
I don't include policy files etc.
1. Do I need to follow any naming conventions for my final .JAR file?
2. Do I need their permission to upload my assignment or can I directly go certmanager and 'upload'?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Discipline, Dedication and Determination define Destiny.
Andrew, why I chose '*any*' was one - it could be the first item on the combo box, ('any' is pushed to the last position)
I thought the wildcard feature could be done with any word /character.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Discipline, Dedication and Determination define Destiny.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
this is supposed to be a surprise, but it smells like a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|