Operator overloading basically means to use the same operator
for different data types. And get different but similar behavior because of
this.
Java indeed doesn't
support this but any situation where something like this could be useful, you
can easily work around it in Java.
The only overloaded
operator in Java is the arithmetic + operator. When used with numbers (int,
long, double etc.), it adds them, just as you would expect. When used with
String objects, it concatenates them.
great post
ReplyDeletemovie box for mac
movie box for ios
movie box for android
movie box for pc
movie box for android