What is Operator overloading? Is it is supported in java?

devquora
devquora

Posted On: Jan 09, 2021

 

Operator overloading allows doing something extra than what it is expected for. Java only allows arithmetic operations. Operator overloading allows multiple meanings for the same operator which will make things more confusing and messy.

Java doesn't support operator overloading due to its simplicity. Every operator has a specific meaning with its arithmetic operation it performs.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    NIIT Technologies Java Interview Questions

    What is abstraction?

    Abstraction is basically used to separate the useless data from the essential ones. Only the important things that need to be shown to the users are only being exposed. Here in these issues, the users...

    NIIT Technologies Java Interview Questions

    What is the difference between left and right outer join?

    The difference between the left and right outer join is as follows:S. N. Left Join Outer Join1 A left outer join provides the table in the FROM clause whose all rows are returned....

    NIIT Technologies Java Interview Questions

    Explain how HashMap works?

    HashMap in Java works on hashing principles. Hashing is a process in which hash functions are used to link key and value in HashMap....