J2SE 5.0 metadata

Hi,

I was reading as below

Metadata is a new addition to the Java language with the introduction of J2SE 5.0. It effectively allows developers to elaborate on class definitions, adding further descriptive and behavioral information to the generation of the class file. The EJB 3.0 specification has used this facility to describe the majority of its workings. To learn more about this new addition to the Java language, read the official specification

How metadata used to handle before j2SE5.0. What kind of class definitions and descriptive and behavioral information does meta data consist of. Where to find that information. I feel descpriptive way of saying @session etc makes lot of things unclear to developer.
 Please advise.
LVL 7
gudii9Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gurpsbassiCommented:
Configuration over convention.


The idea being that you can annotate your classes as needed with annotations giving them behaviour. Prior to J2SE 5, we have XML configuration files. You used to have quite a lot of boiler plate stuff to configure in web.xml for EJB's but with annotations its a lot quicker to configure an EJB.

Some people prefer the XML whilst some prefer the annotation approach. It's all personal preference.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.