Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Class Naming Convention

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,

coming to the point, It is better practice to make a jsp file name as start with small case; example : performLogin , so container like tomcat generate java class[servlet] name as like jsp file name; example : performLogin_jsp . is it not voilating the convention rule that java class name should start with capital letter.

looking for some comments on this . thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The naming convention is just a convention, not a must. Although I would never think of writing a class starting with a lowercase letter. But as far as JSPs are concerned, this happens behind the scenes. All you see is JSPs, not the translated servlet. So, who cares ?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well christophe, thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic