This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Name of a class 'Data.java' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Name of a class Watch "Name of a class New topic
Author

Name of a class 'Data.java'

Paweł Baczyński
Bartender

Joined: Apr 18, 2013
Posts: 933
    
  14

Hi guys!
I have a serious doubt. My must requirement says that a class implementing provided interface must be called Data.java.
Well... no class can ever be called with a dot in its name. So I called my class Data in a Data.java file.
I expected some things that can make me uncertain but not with a must requirement of a class name!
Am I too paranoid?


Formely Pawel Pawlowicz
Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 742
The file should be called Data.java. But the class is Data.
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2265
    
    3

Pawel Pawlowicz wrote:Am I too paranoid?


Yes

Kiddin'. It should just be just the following:



Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Name of a class 'Data.java'