This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Acceptable assignment program header? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Acceptable assignment program header?" Watch "Acceptable assignment program header?" New topic
Author

Acceptable assignment program header?

Greg Funston
Ranch Hand

Joined: Feb 09, 2011
Posts: 81



Is this an acceptable header for the classes being submitted?

Also please explain the "@(#)". Are they necessary or for a specific automated task?

Thanks,
Greg Funston SCJP
Sean Keane
Ranch Hand

Joined: Nov 03, 2010
Posts: 581

Out of interest, where did you get the "@(#)" characters from?


SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Greg Funston
Ranch Hand

Joined: Feb 09, 2011
Posts: 81

Roberto's Programs which he has posted for our use. DBFileReader. I noticed on the Oracle/Sun Comments a copyright notice should be used as well. Since this goes on top of every file I'd like a good header for submission. I am in the final wrap up. Should be finished by Monday.
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Hey champ, this header looks very familiar to me I guess you took it from one of the test classes I created, right?

Champ, this is the header I put in all classes that I submitted. Also, I took the "@(#)" characters from the code conventions example provided by Sun (you can take a look at it here). Also, if you look at Java's source code, you'll find them there as well.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Greg Funston
Ranch Hand

Joined: Feb 09, 2011
Posts: 81

Thanks Roberto. I've appreciated all the replies. Yes it is from one of your posted files.

Cheers,
Greg Funston SCJP

Greg Funston
Ranch Hand

Joined: Feb 09, 2011
Posts: 81

One question regarding copyright. Is this program technically Sun's property even though I authored it? If so, do I need to add their copyright to the file?

Cheers,
Greg Funston
SCJP
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Howdy, Greg.

One question regarding copyright. Is this program technically Sun's property even though I authored it? If so, do I need to add their copyright to the file?


Well, this is a tough one. I think that the program is technically theirs, even though you are the developer (I think). But the header you posted is pretty much fine, you don't have to add anything else.
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5139
    
  12

Roberto Perillo wrote:But the header you posted is pretty much fine, you don't have to add anything else.

Although "Sun Microsystems, Inc." should be replaced, because that's a non-existing company at this moment...

My header was a bit more concise:


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Roel De Nijs wrote:Although "Sun Microsystems, Inc." should be replaced, because that's a non-existing company at this moment...


Well, I'm not sure if we can really say that Sun doesn't exist anymore as a company, but I think it would probably be better to replace the part that says "Sun Microsystems, Inc." by "Oracle Corporation".
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5139
    
  12

If you are acquired by another company, you don't exist anymore. According to Sun's wiki page it was renamed after the acquisition to Oracle America, Inc.
Sean Keane
Ranch Hand

Joined: Nov 03, 2010
Posts: 581

Roberto Perillo wrote:Also, I took the "@(#)" characters from the code conventions example provided by Sun (you can take a look at it here). Also, if you look at Java's source code, you'll find them there as well.


Thanks Roberto. That's interesting. I wonder what the significance of those characters are? A quick Google threw up nothing.
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Howdy, Sean!

Thanks Roberto. That's interesting. I wonder what the significance of those characters are? A quick Google threw up nothing.


Champ, that's a good question. I honestly have no idea what they mean. Maybe it meant something in the past for some automating tool, or was planned to be used in the future...
 
 
subject: Acceptable assignment program header?
 
Similar Threads
Sun Java 310 series certification voucher for sale
Program Header - What is the Candidade ID?
Sun Java 310 series certification voucher for sale
Tests for the Data class/locking mechanism
Netbeans and Eclipse Comments Template How to?