Page 1 of 1

Passed 1Z0-804 with 73% today

Posted: Fri Feb 21, 2014 2:38 pm
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")

Re: Passed 1Z0-804 with 73% today

Posted: Fri Feb 21, 2014 9:46 pm
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.

Re: Passed 1Z0-804 with 73% today

Posted: Thu Mar 06, 2014 12:37 am
by admin
Questions on all these aspects have been incorporated in the question bank.

thank you for your feedback!