Javabean convention - method naming for property gId
问题 If I have a property 'gId' in my Java class what should the accessor method be named as? getGId is what I assume. If there were a property gURL I think it would be getGURL , which kind of looks ugly (not referring to the alternative spelling of girl though). If the property was just url the method name getUrl is good on the eye and yeah I would not name the property as URL in the first place which would make the accessor ugly again - getURL I remember reading from the Javabean Specification