aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Static import 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 "Static import" Watch "Static import" New topic
Author

Static import

Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
This code is from K&Bb of Chapter 10 question 4 with the names modified.


When i run the code with

java HelloWorld _ - A
I get the result " -A"
The answer mentioned is "A"

Can some one point where I am going wrong...
[ July 08, 2008: Message edited by: Nabila Mohammad ]

The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Matt Russell
Ranch Hand

Joined: Aug 15, 2006
Posts: 165
Looks like it's just a mistake in K&B. It's not in the errata, though, although a typo on the same question is.


Matt
Inquisition: open-source mock exam simulator for SCJP and SCWCD
Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
Some body please confirm that..
A mistake on a question hardly seems the kind of thing that will go unnoticed..
Irina Goble
Ranch Hand

Joined: May 09, 2004
Posts: 91
Originally posted by Nabila Mohammad:
java HelloWorld _ - A
[ July 08, 2008: Message edited by: Nabila Mohammad ][/QB]


The underscore is the name of the class in the question, so if you call your class HelloWorld, you should not type the '_' in the commad line.
Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
Ohh Thanks... Irina

Silly ME!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Static import