Title: Priority Queue - Sun Certified Java Programmer 310-065 - Lesson 77 (End)
Duration: 16 minutes
Summary: This is the final video of the Java certification exam 310-065. We finished the book material and we took two sample exams – 75 questions each. I hope this long discussion has been helpful to you. I recommend that you take the exam as soon as you are done with these videos while the material is still fresh in your mind. The first question talks about a PriorityQueue that uses a Comparator object to compare the values in reverse order. Then we use the poll() method to retrieve the first value, but since the elements are in reverse, we end up polling the largest value. In the second question, we are tested in class and package declarations. We need to know that package declaration comes first, then import, then class declarations. Other orders are not correct. For the third question, we discuss correct declarations for is-a and has-a relationships. In the fourth question, we discuss inheritance. In the fifth and final question for this video, we talk about TreeSet and the tailSet() method. When the second parameter to tailSet() is true, it means inclusive and the first parameter will be part of the result.
Methodology of the development of example: Good coding standard and simplified design to prepare for the Java programmer certification exam CX-310-065.
Technology Used: Java – Core Concepts.
Keywords: class, object, PriorityQueue, poll(), compare(), Comparator, import, is-a, has-a, extends, implements, Integer, TreeSet, add(), tailSet().












Post stats:









See the prices for this post in Mr.Bool Credits System below: