Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Puzzle

807603Jan 2 2008 — edited Jan 2 2008
i got this question from a test ... and don't have a clue.It would be helpful if someone could solve this.



Please finish the declaration of variable x below so that the next line prints "false".
public class Reflexive {
    public static void main(String[] args) throws Exception {
    
        <typeX> x = <valueX>;

        System.out.println(x == x);
    }
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 30 2008
Added on Jan 2 2008
22 comments
206 views