• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Acceptable assignment program header?

 
Ranch Hand
Posts: 81
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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
 
Ranch Hand
Posts: 590
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Out of interest, where did you get the "@(#)" characters from?
 
Greg Funston
Ranch Hand
Posts: 81
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greg Funston
Ranch Hand
Posts: 81
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 81
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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:
 
Roberto Perillo
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 590
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic