The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 The Open Road: Looking Ahead to Java 7
Subject:  === operator
Date:  2007-09-20 12:04:26
From:  fast40x


Is there any chance we'll get === operator?
before: LHS === RHS
after: (LHS == null) ?false:LHS.equals(RHS)

If only one operand is a primitive, then the primitive should get autoboxed. If both operands are primitives, then the operator should act like ==.

 Feed java.net RSS Feeds