Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Conventions

 
Christian Long
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating an Applet with labels, buttons, textfields etc..

I have named my labels: lblEnter, lblOther ... my Buttons: btn....
(I have used conventions from in vb.net)

Are these conventions correct for Java as well ? or does Java use other conventions?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not aware of any widely followed naming conventions (except for how to use uppercase and lowercase), but you might be interested in Sun's Java Coding Conventions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic