File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Need help;" Watch "Need help;" New topic

Need help;

kavin kumar

Joined: Jul 21, 2005
Posts: 22
class eq
public static void main(String arg[])
char c = 65;
double d = 10;
{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:
subject: Need help;
It's not a secret anymore!