aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Should I be concerned about Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Should I be concerned about "import" with SCJP test?" Watch "Should I be concerned about "import" with SCJP test?" New topic
Author

Should I be concerned about "import" with SCJP test?

Don Solomon
Ranch Hand

Joined: Jul 20, 2008
Posts: 48
Should I be concerned about import statements with SCJP certification test?
For example: In the Sierra/Bates Java 5 study guide, page 613, question 5, fails compilation as written. I had to include "import java.util.*" which was excluded from the given text.

Thanks for your time and consideration.


Software development is an exercise in thinking not coding.
Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
Yes you should.

If the complete program is given - then they would expect you to know which classes exist in which packages.


The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

Well if you have read the book carefully, it says that you must watch the line numbers of the code in questions. If the line numbers start with 1, then it means that the complete code is given and you must think that there is nothing extra in the code. But if the line number starts from let's say 10, then it means that there is some code in those line which you can depend on that will import required packages and declare any undeclared things...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Should I be concerned about "import" with SCJP test?
 
Similar Threads
SCJP Beta just finished
SCJP
CLEARED SCJP
scjp
SCJP 5 pattern