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 Java 8 in Action this week in the Java 8 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'

Pawel Pawlowicz
Ranch Hand

Joined: Apr 18, 2013
Posts: 607
    
  11

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?
Himai Minh
Ranch Hand

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

Joined: Dec 28, 2007
Posts: 2247

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'
 
Similar Threads
B&S 2.1.2 Interface
NX:about server required interface
Can Data.java be an interface?
URLyBird - 'Your data access class must be called "Data.java"'
NX: Adapter class