Mushfiq Mammadov

Ranch Hand
+ Follow
since Mar 26, 2015
Mushfiq likes ...
IntelliJ IDE Java Spring
Baku, Azerbaijan
Cows and Likes
Cows
Total received
27
In last 30 days
0
Total given
0
Likes
Total received
60
Received in last 30 days
0
Total given
195
Given in last 30 days
1
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mushfiq Mammadov

Campbell Ritchie wrote:Please always provide full details of where the questions came from, so we can assess the complete question and to reduce copyright problems.



Sorry, I edit the post. Thank you.
Hello.
These questions are from "OCA/OCP Java SE Programmer Practice Tests" (J.Boyarsky & S.Selikoff) book, Chapter 23 OCP Practice Exam:


Question 44. Given an updatable ResultSet that contains the following and this code, what does the code snippet output?

---table skipped---


A. 0
B. 10
C. The code does not compile.
D. The code compiles but throws an exception at runtime.


In this question it isn't written that ResultSet is scrollable, says only updatable. If ResulSet is not scrollable the correct answer should be D, but the correct answer is A. Maybe "scrollable" was forgotten to be added.


Question 45. Which statements describe a java.io stream class and cannot be applied to a java.util.stream.Stream class? (Choose three.)

A. Can be used with try-with-resources statement
B. Includes a class or set of classes used solely for working with character data
C. Requires all data objects to implement Serializable
D. Some classes contain a flush() method.
E. Some classes contain a method to skip over data.
F. Some classes contain a method to sort the data.


Option A is shown as one of the correct answers in book and explanation says that:

Option A is correct because the java.io stream classes implement Closeable and can be used with try-with-resources statements, while java.util.stream.Stream does not implement Closeable.



But Stream class implements AutoClosable indirectly and can be used with try-with-resources statements.


Best regards

Stephan van Hulst wrote:A stream is operated on when you call *any* stream operation.


This was helpful. Thank you for your response.

Why this code throws "java.lang.IllegalStateException: stream has already been operated upon or closed" exception? There is no terminal operation here.
Everthing will be ok if I uncomment "line a".

Victor Calin wrote:Hi Mushfiq,

You've mentioned that you took 3 practice exams from SYBEX. I have exactly the same book but the PDF version. However I do not find those 3 exams. Only the assessment test and the exams after each chapter.
It's possible you misted up the books and those 3 exams are elsewhere ?
Thank you,
Victor



Hi Victor,

Practice exams is not included in book, it is online material of SYBEX. Please, look at the paragraph "Free Online Learning Environment" on page XXVI, there is information about it.

João Victor Gomes wrote:You mentioned "In order to avoid any problems, it is recommended that you correctly write your name and surname in English". Has anyone had a problem with different characters, like in my name, João, since ~ is not present in the English language? I don't want to have problems with my register.



On the above of page it is noted that you should use Roman alphabet.


I tried to collect study guides list and shared them in blog . The list are:


Study Guides for OCP Java SE 7 (1Z0-804) exam

Study GuideAuthor(s)
1 “OCP Java SE 7 Programmer II Certification Guide: Prepare for the 1Z0-804 exam” Mala Gupta
2“OCA/OCP Java SE 7 Programmer I & II Study Guide (Exams 1Z0-803 & 1Z0-804)”Kathy Sierra, Bert Bates
3“Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805: A Comprehensive OCPJP 7 Certification Guide”S G Ganesh, Tushar Sharma



Study Guides for OCP Java SE 8 (1Z0-809) exam

Study GuideAuthor(s)
1 “OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide: Exam 1Z0-809” J.Boyarsky, S.Selikoff
2 “Oracle Certified Professional Java SE 8 Programmer Exam 1Z0-809: A Comprehensive OCPJP 8 Certification Guide” SG Ganesh, Hari Kiran Kumar, Tushar Sharma
3 “Java 8 Programmer II Study Guide: Exam 1Z0-809” Esteban Herrera
4 “A Programmer’s Guide to Java SE 8 Oracle Certified Professional (OCP)” Khalid A. Mughal (Nov 27, 2017)



Practise Test Questions / Mock Exams

Questions / Mock ExamsAuthor(s)
1 “OCA/OCP Java SE 8 Programmer Practice Tests” J.Boyarsky, S.Selikoff
2OCP Java SE 7 Programmer II Exam SimulatorEnthuware
3OCP Java SE 8 Programmer II Exam SimulatorEnthuware
4 “Java Practice Questions: Oracle Certified Professional, Java SE 7 Programmer (OCPJP)” Esteban Herrera
5OCPJP 7 Practice Tests  (free)Whizlabs
6OCPJP 8 Practice Tests  (free)Whizlabs
7OCPJP 7(1Z0-804) Exam Practice TestsMyExamCloud
8OCPJP 8 (1Z0-809) Exam Practice TestsMyExamCloud



This will be my third book which belong to Jeanne and Scott. I bought the first book (OCA Java SE 8 Study Guide) from Amazon. The second book (OCP Java SE 8 Study Guide) was sent me as a gift by authors. And I won the third book in book promotion    It is a very valuable gift. Thanks a lot  

Roel De Nijs wrote:Excellent cow-worthy work! I have added a link to this topic to the OcajpFaq.


Thanks, Roel!  
In this thread one of users wrote that it have no possibility to get a hard copy of the certificate.