I pass
OCAJP in 2014 – it was not difficult, so I was going to pass ocpjp immediately and I tried to do it without preparation in 2015. As result I failed (48%) and promised to myself to pass OCPJP in 2016. At October 2016 I have remember my promise and decided to release it before New Year. So far, I had smaller than 3 months for preparing.
OCPJP is much more difficult than OCA.
You should know a lot of API, you should deep understand multithreading, exceptions etc., and you should recognize tricks in code;
I used Oracle tutorials,
Java Doc, Google and mock tests from enthuware.com
My enthuware results where between 60 and 77%, average 70% My real exam result is 81%
Enthuware tests are very useful, tests are very near to real exam and just a little more difficult.
And here are some things I was not sure on real exam (approximately from my memory )
1. Given table student with column NAME (uppercase)
Given a peace of code
Will it print names, null or throw Exception? I think it prints names (getString is case insensitive)
2.
Can we say B-has-A ? I think yes, we can;
3.
What is output? My answer was DDD but really it is compilation fail;
4. Given
Now, you move and remove a file to mydir;
Will key poll similar events always in similar order in all operation systems?
I do not know…
Main topics where Threads and Concurrency (AtomicInteger, ExecutorService и Fork/Join ),
it was not at all questions about Concurrency Semaphore, Locker, Exchanger;
2-3 questions where about easy RegExps;
Try with resources is popular topic too;
Next year I'm going to pass ocm enterprise architect or oce web services;