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 JQ + Question ID :958011966030 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 "JQ + Question ID :958011966030" Watch "JQ + Question ID :958011966030" New topic

JQ + Question ID :958011966030

huiying li
Ranch Hand

Joined: Feb 12, 2001
Posts: 68

The answer given is none of the three lines will compile, however, using JDK 1.3, all three did compile and here are the output.

C:\JavaRanch>java Test34
Any thoughts?

Subramaniam Venkatesan
Ranch Hand

Joined: Feb 24, 2001
Posts: 48
None of the 3 lines compiled in jdk1.2.2
got these errors

but got truenull or the o/p you mentioned
in these codes
Stevie Kaligis
Ranch Hand

Joined: Feb 04, 2001
Posts: 400
I was about to ask the same question,
it suppose to be compiled and run without any problem,
if this topic is related to JDK 1.0 and 1.1, than JQPlus was right,
but for JDK 1.2 and 1.3, it works without any problem.
huiying li
Ranch Hand

Joined: Feb 12, 2001
Posts: 68
Thanks for your replies, hopefully there won't be something ambiguous like this in the real test.
I agree. Here's the link:
subject: JQ + Question ID :958011966030
It's not a secret anymore!