Constants are replaced by their values at compile time. If a java object has a Constant attribute, and the other class tries to divide by it, you should get a compile error if your constant is 0.
good answer, although dividing by zero doesn't cause a compile error.
Post a Comment
2 comments:
Constants are replaced by their values at compile time. If a java object has a Constant attribute, and the other class tries to divide by it, you should get a compile error if your constant is 0.
good answer, although dividing by zero doesn't cause a compile error.
Post a Comment