Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

(B&S)Implementing Data.java

 
Saheed Adepoju
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
After some time of thinking of how best to implement my Data.java i have come up with the following pseudocode and would love your opinion about it:



Now the above is just a pseudocode and is still prone to errors as i have not yet compiled it!I would like an insight into the ways i caught the exception and re-threw it(Are they valid enough)! For example, while opening the data file and the magic cookie is not valid, is it Ok to throw a securityException?Also are my constructors for Data.java Ok?Any other opinion is also highly welcome! Thanks!
 
Saheed Adepoju
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I would really love an opinion about this little pseudocode! Thanks!
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!