📜 ⬆️ ⬇️

Oracle Java SE 7 Programmer II Exam Preparation (1Z0-804)


I welcome dear and Java-programmers!
The article is devoted to preparing for the Oracle Java SE7 Professional exam with code number 1Z0-804 . About this on Habré many posts have already been written (for example, here , here , here , here , here , here , and here ), so I will try not to repeat and add notes on what is most often met with important nuances that the view was missed or not well covered in the indicated articles, and generally in the publicly available literature (I note right away that the material does not pretend to be complete, here I just tried to identify the tricky questions from the exam and briefly outline some difficult things). I will also share my thoughts on what materials are best for preparing. From the first time the exam failed to pass, so I began to keep for myself various notes, where I wrote down everything that seemed to me difficult or difficult to remember. Which now and decided to share with you. I ask you to show understanding beforehand, if you suddenly notice an error, a defect or a bug - write in the comment.


general information


I passed the exam in Moscow, it costs $ 150, lasts 2.5 hours, I have 2 documents with me. 90 questions, 65% passing score, i.e. You can incorrectly answer about 30 questions (I'm not sure that for each question they give the same number of points). If necessary - retake only after 2 weeks. Registration for the exam on the Pearson VUE website, where the testing center and the date are selected, payment by card (as once paid in the center in cash, but this was more expensive). This time I went to ACET (American Center for Education and Testing), Oktyabrskaya metro station. On the surrender, everything is serious here - turning the pockets upside down and forbidding to take any things with you (the phone is understandable, but for example, water is too much like that). It is allowed to leave the office, but “on receipt”, and the exam does not stop. The results are sent in about 30 minutes to the post office (or to an account on Oracle Certview , where all exams and received certificates are displayed). The paper certificate comes on average within 1.5-2 months (Moscow region).

Recommendations for preparation


Well, of course, program, program and program again! And the joke is only partly. Since I began to learn Java recently, and there was little practical experience, I initially tried to prepare myself mainly from books and various tests, but all of this quickly got out of my head, and you really need to practice everything so that everything fits and the main thing is not forgotten. For preparation I used the following materials:

')

Main themes


Design classes, constructors, access




Exceptions






Methods and Parameters




Collections


The most important thing to know is syntax, class hierarchy and collection interfaces, work with elements, search / sort, work equals () and hashCode () methods. The main collections that I met at the exam: interfaces Set, Map, List, Deque, SortedMap, classes ArrayList, CopyOnWriteArrayList, ArrayDeque, TreeMap, TreeSet, HashMap, HashSet. To find an item in the Java collection, it uses the equals () and hashCode () methods. For the new class, by default, the equals () method performs a comparison of objects (i.e., pointers to them, because it inherits from Object), so if you use your own element class in the collection, then you need to redefine this method so that Java could find previously inserted item. The hashCode () method is required by Java to search for the required baketa with elements (for hash collections). Accordingly, if the method is not defined and the bakt is not found, then the element is not found. It is also desirable to know all sorts of syntax for creating collections:
 // : List<> m = new ArrayList(); // error! List<> m = new ArrayList<String>(); // error! List<?> m = new ArrayList<?>(); // error! List<String> m = new ArrayList<?>(); // error! // : HashMap m = new LinkedHashMap<>(); HashMap<String, String> m = new LinkedHashMap(); HashMap<String, String> m = new LinkedHashMap<>(); HashMap<String, ?> m = new LinkedHashMap(); HashMap<?, ?> m = new LinkedHashMap<String, String>(); 


Now more about the features of the collections. For convenience of memorizing the hierarchy, I found the corresponding visual diagrams, and made a small summary of the specifics of each class:



Additional information on the comparison of collections can be found here:


Search and sort collections. Comparable and Comparator Interfaces




Inner classes



Just remember:


Working with strings, regular expressions




Streams


Another favorite topic where you need to be very attentive.


Wrapping types and methods with a variable number of arguments



There are the following rules for the compiler:


Innovations 7 version




miscellanea




Conclusion


Of course, a lot of material remained about which I did not write (listings, work with files, JDBC, Localizarion, ResourceBundle and probably something else). On these topics, I propose to figure out for yourself, because In my opinion, they do not present any particular difficulties. And of course everyone good luck on the exam!

Source: https://habr.com/ru/post/190834/


All Articles