Passed 1Z0-804 with 73% today

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
kjackiew
Posts: 1
Joined: Tue Jan 28, 2014 4:03 pm
Contact:

Passed 1Z0-804 with 73% today

Post by kjackiew »

Hi, just wanted to say about my achievement: 73% of 1Z0-804 exam

Thank you enthuware for a good stuff! The question bank is quite good, however some things are missing. So I would like to share with you what is missing there:

1. question around StringBuffer. What will be printed: System.out.println(1+2+sb+4+5), where s is a String Buffer sb = new StringBuffer("3");
answers: 3345, 3StringBuffer@4fds3, ... It requires to know that toString returns String "3".

2. Several questions where class extends another class (in some questions it was abstract class) and implements interface and each class/interface has the same member variable (in some questions it was a static member), but initialized with different value. The question to check which value will be used and then printed: from interface, base Class, derived class.

3. Method in based class is protected, in derived overriden method is private. (answer it doesnt compile, due to assigning weaker access privileges)

4. Collections.sort(al) - al - Arraylist of Object type (inserted values: "A", 1, 1.5)

5.Use java.util.Comparator and java.lang.Comparable
Code to sort,compare values in arraylist with custom comparator, with following code:
ArrayList<String> = new ArrayList<String>(new MyComparator()....)

5. The same variable/method name in outer class and in inner class

6. Creation and start of two threads with passing static class (which implements runnable). Question to check if print from run method will be called once/twice...

7. Main method starts two thread. First thread is causing decrementation of static variable(initially equals 0), other incrementation of the same varaible. For loop < 1000 in both run() methods.

t1.start();t2.start(); try{t1.join();t2.join()}catch{} print(staticvaraible)
Question: what will be the final value of staticvaraible.

8. synchronized run() method with while(iStatic<4){ iStatic++;}. two threads. iStatic initialy =0. Question: what will be the value of iStatic at the end ( only 4 is possible, might be 4 or 5)...

9. stupid question with pattern matcher("\\Sto\\S|\\bo\\b") and then m.replaceAll(",") String="Nice to be, with,you,abc something")

10 Boolean constructor:
New Boolean("true"), New Boolean("TRUE")
Last edited by kjackiew on Sat Feb 22, 2014 6:27 am, edited 1 time in total.

admin
Site Admin
Posts: 10385
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: Passed 1Z0-804 with 73% today

Post by admin »

Congratulations on passing and thank you very much for your detailed feedback. We will incorporate questions to cover these points asap.

thank you,
Paul.

admin
Site Admin
Posts: 10385
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: Passed 1Z0-804 with 73% today

Post by admin »

Questions on all these aspects have been incorporated in the question bank.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 9 guests