As far as i know java does not support operator overloading. But how is + operator used for string concatenation ? Will this not be called Operator overloading n why ? Please responnd fast n thanks in advance.
hi Dipti Mishra See Java Does not supports operator overloading bcoz It takes all i/p as string thats why not needed seperatoly. And U can add like "amiy"+*+""+3.0 etc... this supports in java and thats they not thought of Operator overlading...
Thanks advance who ever answers this question.
posted 14 years ago
Thanks for such a quick response.Actually this was asked to one of my friends in the interview.....