Skip to main content

All Questions

6 votes
5 answers
7k views

Assertion statements: Remove or retain in production code

I'm working in a large company and am doing my first Java project here. We have certain code style guidelines. In the Java guideline, it is said that "assertions are only intended for debugging ...
Green 绿色's user avatar
2 votes
2 answers
489 views

About the usage of assertions [duplicate]

I stumbled upon an article named Programming With Assertions. And beside the mechanism of turning on and off assertions after compile time, I don't get it. Why were assertions introduced on language ...
Angelo.Hannes's user avatar