+ 2
Why Java does not support the use of operator overloading?
I know that the only overloaded operator in Java is the '+' operator but why doesn't Java support operator overloading whereas it supports method overloading
3 Antworten
+ 3
I have same doubt @Bishnu.
0
java was designed to be safe and predictable language, overriding operators is not save, just use methods.
0
Because James Gosling thought programmers couldn't handle it.