wood burning stoves
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Int value to mark Deleted 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 "Int value to mark Deleted" Watch "Int value to mark Deleted" New topic

Int value to mark Deleted

Sam Codean
Ranch Hand

Joined: Feb 26, 2006
Posts: 194
I think i am getting paranoid at things. Just recently i saw some threads where people were discussing that we need to use 0xFF to mark a Record Deleted.
In my assignment it states that 0 and 1 are to be used. So i went ahead with that implementation.
just wanted to confirm that hope that 1 does not mean all ones in a Byte.

-Sam Codean<br />SCJP 1.4 (98%)<br />SCJD 5.0 (87.5%)
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
if it says 0 or 1, use those.
Mine says "2 byte flag. 00 implies valid record, 0x8000 implies deleted record ", so also quite specific.

There are many different versions of the assignment out there, follow yours to the letter whereever something is explicit and explain your choices in detail where it's not.

Sam Codean
Ranch Hand

Joined: Feb 26, 2006
Posts: 194
hmm yes. I think that automatic failure is making me scared to take any decision. I will do that. Thanks again
I agree. Here's the link: http://aspose.com/file-tools
subject: Int value to mark Deleted
It's not a secret anymore!