What trick does Java use to avoid spaces in >> ?

Posted by kunjaan on Stack Overflow See other posts from Stack Overflow or by kunjaan
Published on 2010-05-11T05:38:15Z Indexed on 2010/05/11 5:44 UTC
Read the original article Hit count: 159

Filed under:
|
|
|
|

In the Java Generic Book, while contrasting the difference between C++ Templates and Java Generic says:

In C++, a problem arises because >> without the space denotes the right-shift operator. Java fixes the problem by a trick in the grammar.)

What is this trick?

© Stack Overflow or respective owner

Related posts about java

Related posts about generic