Why there is no preprocessing stage in java?
I understand there are number of problems we have with this stage during
compilation in previous languages
like for example ::
#define PI_PLUS_ONE (3.14 + 1)
x = PI_PLUS_ONE * 5; // a line of code
if i don't use parenthesis i will be getting different result than the
expected output. So what i want to say is if we understand it very well we
can take it advantages one of it is type neutral in defining constants.
What Are the reasons(main) behind the restriction of this stage in java?
Thanks in Advance for help!
No comments:
Post a Comment