This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes on being alone Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "on being alone" Watch "on being alone" New topic
Author

on being alone

Keith Jones
Ranch Hand

Joined: Oct 30, 2006
Posts: 105
Another question

In the document under the heading "Network Approaches" it says "� the program must allow the user to specify the location of the database, and it must accept an indication that a local database is to be used �". My question here is does this mean that if the user's command line parameter is either "" or "server" that they still even then should be allowed to use "alone" mode or does this simply refer to the "alone" mode?

And what do they mean by "indication"? Do they mean you must have a label or something saying "You are using a local database" or do they mean that by being in "alone" mode you will have to select a local db file and that that would be your indication.


SCJP 1.4
Mark Smyth
Ranch Hand

Joined: Feb 04, 2004
Posts: 288
Originally posted by Keith Jones:
Another question

In the document under the heading "Network Approaches" it says "� the program must allow the user to specify the location of the database, and it must accept an indication that a local database is to be used �". My question here is does this mean that if the user's command line parameter is either "" or "server" that they still even then should be allowed to use "alone" mode or does this simply refer to the "alone" mode?

And what do they mean by "indication"? Do they mean you must have a label or something saying "You are using a local database" or do they mean that by being in "alone" mode you will have to select a local db file and that that would be your indication.


I think that this is a confusing sentence and is a bit ambigious. I think that the best innterpretation is that 'alone' argument is indication that a local database is to be used. This is the interpretation that I have taken and below is the main method to start the app.



SCJP<br />SCJD
Chulwoo Choi
Ranch Hand

Joined: Apr 11, 2005
Posts: 65
Hi,

I would paraphrase
...(requirements when in "server" mode)... and it must accept an indication that a local database is to be used, in which case...

as
...(requirements when in "server" mode)... but the program must also consider the case when it runs in "alone" mode, in which case...


Chulwoo
 
 
subject: on being alone