Why isn’t there operator overloading?
Answer / Chetan Singh Kushwaha
"Java does not support operator overloading to maintain a consistent syntax across all objects and built-in data types. Operator overloading can lead to confusion about the meaning of operators for different classes, which would make the language harder to learn and use. Instead, Java provides methods that can mimic some aspects of operator overloading, such as custom math functions like add(), subtract(), multiply() etc.n
| Is This Answer Correct ? | 0 Yes | 0 No |
when System.out.println("") is executed what happens in the back ground?
What does java stand for?
What is an exception?
Explain about anonymous inner classes in java?
what is difference between abstract factory and factory design patterns?
what is the difference between yielding and sleeping? : Java thread
What is floor in java?
Explain Basics of OOP Language in java
How can a class be accessed, If no access modifiers are declared?
What is java class writing rules?
Can a class be private or protected in java?
What is an example of declaration?