This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
"Design by Contract" in Java means assert(). Actually Design by Contract has nothing to do with JAVA as such. It is a design methodology.
Joined: Jan 29, 2003
To be picky, Wikipedia claims "Design by Contract" is a trademark of Eiffel Software, the maintainers of Eiffel. For this reason, many developers will refer to it only as programming by contract or contract-first development. They also list a number of 3rd party libraries that help use the DBC method in Java.
But back to the original poster ... what makes you interested in it? What problems do you think it solves? I'm trying to prod you into some research and explaining your findings. Frankly I don't know much about it, and your answers will be interesting.
Originally posted by Tanveer Ahmad: "Design by Contract" in Java means assert().
Where do you get that from? To me, DBC means much more than just using the assert statement.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus