There is a method in javax.ejb.EJBObject interface: "getEJBHome()". But if we follow the usual Java naming conventions this method should be named as "getEjbHome()"! Please explain why it has gone as "getEJBHome()". Thank you.
I believe that the method ejbCreate() is not written as EJBCreate() because the first letter of all method calls should be a lowercase letter. This would produce eJBCreate() which looks odd so all of the letters from EJB are turned into lowercase to give ejbCreate(). The method used to join words together like this is referred to sometimes as camelcase, see below link for details. CamelCase
Originally posted by Nesan Krish: But, then why ejbCreate() method comes as "ejbCreate()" and not as "EJBCreate()"!!?
I believe it is not about looking odd. As I observed in Java Programs and used personally for method names, abbreviations either are all up or all down depending upon where they fit in method names. In English grammar they may be all UP unless noted elsewhere. ex: NATO is never used as a Nato , nATO. WHO (World Health Organization) is not used as Who.
getEJBHome() ejbCreate() I hope it answers your question.
Capitalize the first letter of standard acronyms Names will often contain standard abbreviations, such as SQL for Standard Query Language. Names such as sqlDatabase for an attribute or SqlDatabase for a class are easier to read than sQLDatabase and SQLDatabase.