Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Name of a class 'Data.java'

 
Paweł Baczyński
Bartender
Posts: 1971
39
Firefox Browser IntelliJ IDE Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1398
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The file should be called Data.java. But the class is Data.
 
Roberto Perillo
Bartender
Posts: 2273
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pawel Pawlowicz wrote:Am I too paranoid?


Yes

Kiddin'. It should just be just the following:

 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!