corsiKa
corsiKa

Reputation: 82579

List of standard Java contracts

I'm writing up a small series of tutorials for some friends of mine introducing them to Java. They're professional programmers, and good ones. Basically, our shop is running Progress 4GL (I just threw up a little) and we've inherited a simply awful code base. Our hope is to replace some of these poorly written modules with Java services at some point in the near future.

One thing that Java is big on is contracts. Is there a compiled list of the most common contracts in Java? I would expect things like equals contract to be on there.

Upvotes: 0

Views: 180

Answers (2)

Amir Afghani
Amir Afghani

Reputation: 38531

If your friends are professional programmers and you want them learn the best practices early, have them read Effective Java by Joshua Bloch and save your time.

Upvotes: 1

Chris K
Chris K

Reputation: 12351

With java, implementing the java.lang.Object is about the basest contract there is... since everything is an Object (except intrinsic types).

That said: I work for Progress. Give our support folks a call - we're very Java friendly.

Upvotes: 1

Related Questions