Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Name of a class '' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Name of a class Watch "Name of a class New topic

Name of a class ''

Paweł Baczyński

Joined: Apr 18, 2013
Posts: 837

Hi guys!
I have a serious doubt. My must requirement says that a class implementing provided interface must be called
Well... no class can ever be called with a dot in its name. So I called my class Data in a 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: 720
The file should be called But the class is Data.
Roberto Perillo

Joined: Dec 28, 2007
Posts: 2258

Pawel Pawlowicz wrote:Am I too paranoid?


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