Oracle Certified Professional Java Programmer (OCPJP 7) Book
Oracle Certified Professional Java Programmer (OCPJP 7) Book
S G Ganesh
Sunday 17 March 13
Tushar Sharma
Sunday 17 March 13
DIFFERENTIATE YOURSELF
The key to get a job, hike or promotion is to show you deserve it Certification is a means to show that youve relevant knowledge and skills
Sunday 17 March 13
Sunday 17 March 13
T show youve some document proof that you have relevant skills or knowledge
show that you are different from others & have some specialized skills/knowledge
preparing and passing the exam gives you focus on mastering the topic
Sunday 17 March 13
From www.tiobe.com as on 17 March - Java is the most popular language in the world!
Sunday 17 March 13
Sunday 17 March 13
Sunday 17 March 13
Sunday 17 March 13
Sunday 17 March 13
EXAM TOPICS
Java Class Design Advanced Class Design Object-Oriented Design Principles Generics and Collections String Processing Exceptions and Assertions Java I/O Fundamentals Java File I/O (NIO.2) Building Database Applications with JDBC Threads Concurrency Localization
Sunday 17 March 13
Sunday 17 March 13
Sunday 17 March 13
Its a multiple-choice questions exam The number of options would be based on the questions
The question will clearly tell you how many options you need to select
Sunday 17 March 13
These questions will test your knowledge and will not have any programs in it. Examples: What are different kinds of drivers in JDBC? What are different kinds of liveness problems with threads?
Sunday 17 March 13
SAMPLE QUESTION - I
Which two of the following statements are true regarding sleep() method in Thread class?
a) The sleep() method takes milliseconds as an argument for the time to sleep. b) The sleep() method takes microseconds as an argument for the time to sleep. c) The sleep() method relinquishes the lock when the thread goes to sleep and reacquires the lock when the thread wakes up. d) The sleep() method can throw InterruptedException if it is interrupted by another thread when it sleeps.
Sunday 17 March 13
Sunday 17 March 13
Questions will check your knowledge of language features and their usage
Will test if you understand language features and can apply them in practical situations Most questions will be on nitty-gritty details or corner cases, or unusual aspects of the language
Example: You dont just need to understand the generics feature in Java but also need to understand problems due to type-erasure
Sunday 17 March 13
SAMPLE QUESTION - II
Sunday 17 March 13
Which one of the following options best describes the behavior of this program?
a) The program prints: in catch -> in nally -> after everything b) The program prints: after throw -> in catch -> in nally -> after everything c) The program prints: in catch -> in nally -> after everything d) The program prints: in catch -> after everything e) The program prints: in catch -> in nally -> f) When compiled, the program results in a compiler error in line marked with comment in LINE A for divide-by-zero
Sunday 17 March 13
The statement println("after throw -> "); will never be executed since the line marked with comment LINE A throws an exception. The catch handles ArithmeticException, so println("in catch -> "); will be executed. Following that there is a return statement, so the function returns. But before the function returns, the nally statement should be called, and hence the statement println("in nally -> "); will get executed. So, the statement println("after everything"); will never get executed.
Sunday 17 March 13
Questions will test your knowledge of library features and their usage
Will test if your familiarity with Java
APIs and know how to use them in practical situations Most questions will be on nitty-gritty details or corner cases, or unusual aspects of the library
Example: What does the remove() method of Deque do? (Answer: It removes the rst element from the underlying deque instance)
Sunday 17 March 13
Sunday 17 March 13
Which one of the following options correctly describes the behavior of this program?
a) This program will result in a compiler error in line marked with comment LINE A b) When executed, the program prints: Brazil Russia India China c) When executed, the program prints: Brazil China India Russia d) When executed, the program prints: Russia India China Brazil e) When executed, the program throws a runtime exception NullPointerException when executing the line marked with comment LINE A f) When executed, the program throws a runtime exception InvalidComparatorException when executing the line marked with comment LINE A
Sunday 17 March 13
c) When executed, the program prints: Brazil China India Russia When null is passed as second argument to Arrays.sort() method, it means that the default Comparable (i.e., natural ordering for the elements) should be used. The default Compartor results in sorting the elements in ascending order. The program does not result in a compiler error or any execeptions usch as NullPointerException.
Sunday 17 March 13
SAMPLE QUESTION - IV
Given these two definitions interface I1 {} interface I2 {} which one of the following will compile without errors?
a) interface II implements I1, I2 {} b) interface II implements I1 implements I2 {} c) interface II implements I1 extends I2 {} d) interface II extends I1, I2 {}marked with comment in LINE A for divide-by-zero
Sunday 17 March 13
d) interface II extends I1, I2 {} It is possible for an interface to extend one or more interfaces. In that case, we need to use the extends keyword and separate the list of super-interfaces using commas.
Sunday 17 March 13
exam tests your understanding of the Java language and library and your ability to apply it for problem solving
It does not test your memory skills However, there are few topics where you may need to remember key things; examples: Letters used for creating custom date and time formats ("string patterns") for use with SimpleDateFormat class Characters used for forming pattern strings in regular expressions Format speciers and their meaning for use in format() method in String and in printf()
Sunday 17 March 13
OUT-OF-SYLLABUS QUESTIONS?!!
Exam
Sunday 17 March 13
Sunday 17 March 13
Sunday 17 March 13
Oracles online Java tutorial: http://docs.oracle.com/ javase/tutorial/; http:// docs.oracle.com/javase/ tutorial/extra/certication/ javase-7-programmer2.html Java documentation:http:// docs.oracle.com/javase/7/ docs/api/
Sunday 17 March 13
Sunday 17 March 13
Sunday 17 March 13
HOW TO REGISTER?
Three options: You can register and pay at the Pearson VUE website
Recommended option
You can buy exam voucher from Oracle and then register yourself in Pearson VUE website You can register and pay in the Oracle Testing Center (OTC)
Sunday 17 March 13
OCPJP 7 BOOK
Sunday 17 March 13
OCPJP 7 BOOK
Title Authors Edition & Publication Date Pages Publisher ISBN-13 List Price Amazon URL Blog Apress URL Oracle Certied Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805 S G Ganesh and Tushar Sharma 1 edition (February 27, 2013) 656 Apress 978-1430247647 US $45.99 http://amzn.com/1430247649 http://ocpjp7.blogspot.in http://www.apress.com/9781430247647
Sunday 17 March 13
Sunday 17 March 13