GeeCON Prague 2014*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes questions regarding to B&S project specifications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "questions regarding to B&S project specifications" Watch "questions regarding to B&S project specifications" New topic
Author

questions regarding to B&S project specifications

Helen Ma
Ranch Hand

Joined: Nov 01, 2011
Posts: 451
I got the B&S assignment.

One of the requirement says "It must allow the user to book a selected record, updating the database file accordingly".
But this specification never says anything about the create/delete methods as provided by the DBMain.java. Does it mean I don't need to implement any code for create/delete?


Also, another specification"The program must allow the user to specify the location of the database in both standalone and network mode and persist the db configuration details in suncertify.properties file. The application must read the properties file to determine the location of the db and display the data from the db."
So, does it mean every time I finish the GUI, the db file location, port number and etc information should be stored in the properties file. And every time I start the GUI again, the properties file must be read?
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5300
    
  13

These questions are already asked a dozen times (at least), so using the search engine will allow you to find a satisfactory answer.


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Helen Ma
Ranch Hand

Joined: Nov 01, 2011
Posts: 451
As I searched, create/delete methods are not required for some test takers. I may want to put these tasks as the last tasks. If these two methods work fine, that is fine. If these two methods are not working fine, I may not lose any point because it is not required.
Does it what the following quotes mean?



If things didn't change, a feature of deleation is not mandatory to be implemented (at least it wasn't in the old Sun days), but you must implement the delete method in your class that implements the interface that was provided to you. In fact, I'd advise you not to offer such a thing in your GUI if it isn't mandatory, because you won't be given extra points for doing things that are not required, and worse, you may lose points.



I agree with Roel. It is indeed risky to have an empty implementation.

For me too, requirements were similar (no necessity for create and delete operations, but given interface was containing those methods).

So, I wrote a descent working code for those methods, but did not expose those methods via RMI or did not provide any buttons on GUI. So, only way to invoke those methods was to write another class and call the methods.

Of course, I mentioned all these things in choices.txt
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5300
    
  13

If create/delete methods don't work correctly (as described by the comments in the given interface), you'll definitely lose points (but you may pass the certification). If you decide to not implement these methods (e.g. throw new UnsupportedOperationException("delete not yet supported")) you might risk failure.
 
GeeCON Prague 2014
 
subject: questions regarding to B&S project specifications