Discuss java beans in the Java Help forum on Dev Shed. java beans Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter!
Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.
Posts: 2,353
Time spent in forums: 2 Days 12 h 39 m 5 sec
Reputation Power: 115
Because the convention for java method naming is to use a lower case first letter and to use InterCaps for all the words in the method name. Intercaps is what you call it when you capitalize the first letter of each new word in a descriptive phrase. thisIsInterCaps.
Variables and methods start lower case and use intercaps.
Classes capitalize the first letter and use intercaps.
Package names usually use all lower case - no intercaps.
Contants (final variables) use all caps and seperate each word with an underscore. CONSTANT_VAR.
Posts: 2,353
Time spent in forums: 2 Days 12 h 39 m 5 sec
Reputation Power: 115
Not exactly. The compiler doesn't, but if something is written to take advantage of the java beans pattern, it can access attributes using getters/setters knowing only the attribute names. This is how taglibs work for instance. If I made a custom tag that had an attribute named "color", I would use this syntax for the tag
Code:
<mytag:dog color="blue"/>
In this case, the tag class would have to have a getter and setter named setColor and getColor for this tag to work, because the taglib code built into the app server follows the java beans specification. Make sense?