Forums Register Login

Assumptions for OCA and OCP exams

3
+Pie Number of slices to send: Send
Oracle added the following to the beginning of a bunch of exam objectives:

Assume the following:

Missing package and import statements: If sample code do not include package or import statements, and the question does not explicitly refer to these missing statements, then assume that all sample code is in the same package, and import statements exist to support them.
No file or directory path names for classes: If a question does not state the file names or directory locations of classes, then assume one of the following, whichever will enable the code to compile and run:
All classes are in one file
Each class is contained in a separate file, and all files are in one directory
Unintended line breaks: Sample code might have unintended line breaks. If you see a line of code that looks like it has wrapped, and this creates a situation where the wrapping is significant (for example, a quoted String literal has wrapped), assume that the wrapping is an extension of the same line, and the line does not contain a hard carriage return that would cause a compilation failure.
Code fragments: A code fragment is a small section of source code that is presented without its context. Assume that all necessary supporting code exists is present and that the supporting environment fully supports the correct compilation and execution of the code shown and its omitted environment.
Descriptive comments: Take descriptive comments, such as "setter and getters go here," at face value. Assume that correct code exists, compiles, and runs successfully to create the described effect.



It's nice to see them be explicit about this.
1
+Pie Number of slices to send: Send
 

Jeanne Boyarsky wrote:It's nice to see them be explicit about this.


Indeed!

And I assume/hope Oracle will add these assumptions to the exam software as well, so you are aware before you take the exam.
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 4091 times.
Similar Threads
OCA Exam question formating.
Axis 2 tutorial - client class compliation error
Java compiling error: package does not exist
K&B(SCJP5) page no:769.......
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:35:07.