Discussion

In above code sample we have not enclosed sum/length into Parentheses but in some programs we have enclosed arithmetic calculations into parentheses. It is because /,*,% are not overloaded while + is overloaded and that’s why (-) will also be trouble in situations where (+) precedes (-) in expression. While if (-) precedes (+) there would be not any trouble.

Categories: Java

faltutech

Pursuing MCA from YMCA University, Faridabad

Leave a Reply

Your email address will not be published. Required fields are marked *

Read previous post:
Convert String to Other Data Types in Java
Convert String to Other Data Types in Java

[crayon-5a2bba6b410d2425929357/]

Close