aspose file tools*
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 Spring in Action this week in the Spring 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: 1020
    
  16

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: 775
The file should be called Data.java. But the class is Data.
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2266
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Name of a class 'Data.java'