maaz
maaz

Reputation: 4493

Java class naming with small letters

I was wondering that can we start java class name with small letter for some special classes like any product name (facebook.java, apple.java, iPhone.java),

I know it is possible but will that cause any issues if these classes become part of any framework?

I have check some repositories on svn that are using classes that starts with small letters.

  1. apache
  2. openjdk

Thanks

Upvotes: 2

Views: 3607

Answers (3)

Pieter
Pieter

Reputation: 3399

No this will not cause any issues. Naming conventions are just that, conventions. There are some guidelines as described here, but you don;t have to follow them.

Upvotes: 1

MByD
MByD

Reputation: 137412

It will not cause any compile / runtime issue, yet it will confuse people, as it violates the Java naming conventions.

Upvotes: 2

Michael Borgwardt
Michael Borgwardt

Reputation: 346476

It will not cause any technical problems, as uppercase classnames are purely a convention (and not one used to carry technical meaning). However, it will irritate developers who have to work with these classes.

Upvotes: 4

Related Questions