File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Mock Exam Errata and the fly likes Rules Roundup #108 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "Rules Roundup #108" Watch "Rules Roundup #108" New topic
Author

Rules Roundup #108

Yuri Sforza
Greenhorn

Joined: Apr 15, 2002
Posts: 15
Given x=y--; Which of these will be true AFTER execution?

x == y
x < y
x > y

Supposed answer is x>y but what about the following:


--
Y. Sforza
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
x will be -128 and y = 127, and thus, y > x would be the correct answer.


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Yuri Sforza
Greenhorn

Joined: Apr 15, 2002
Posts: 15
Yes, of course. This means that there is no correct answer
(which is ALWAYS true) for the question #108.
--
Y. Sforza
 
wood burning stoves
 
subject: Rules Roundup #108
 
Similar Threads
Conversion byte->int
Wrapper class constructors
Recursive number problem
well a doubt !