aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Need help; Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Need help;" Watch "Need help;" New topic
Author

Need help;

kavin kumar
Greenhorn

Joined: Jul 21, 2005
Posts: 22
class eq
{
public static void main(String arg[])
{
char c = 65;
double d = 10;
if(c==d)
{System.out.println("EQ");}
else
{System.out.println("Not EQ");}

}
}
This is a question from a mock exam(shahirsha)
answer is " EQ " as per mock exam author.

When i run this i got "Not EQ"

Any thoughts ?
Georgy Bolyuba
Ranch Hand

Joined: Feb 18, 2005
Posts: 162
Originally posted by kavin kumar:
Any thoughts ?


One of two things: mock exam author is wrong or your compiler lies to you.
Pick one.


SCJP 1.4 (100%) Done.<br />SCJD (URLyBird 1.2.3 Started)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help;