Reputation: 4493
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.
Thanks
Upvotes: 2
Views: 3607
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
Reputation: 137412
It will not cause any compile / runtime issue, yet it will confuse people, as it violates the Java naming conventions.
Upvotes: 2
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