SlideShare une entreprise Scribd logo
1  sur  24
Télécharger pour lire hors ligne
Ganesh S G
Hari Kiran
Cracking OCA/OCP Java 8
Exams
Ganesh S G | Hari Kiran
Why Get Certified?
• The key to get a job, hike or promotion is to show you
deserve it
• Certification is a means to show that you’ve relevant
knowledge and skills
Why Java certification?
Source: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
Why Java certification?
Oracle’s certification path
Oracle
Certified
Associate
Oracle
Certified
Professional
Oracle
Certified
Master
Advanced levels of skills
and knowledge
Professional skills and technical
expertise to develop enterprise
software
Fundamental skills, provides strong
foundations for further exams
How to register?
• You can register and pay at the Pearson VUE
website
• This is our 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)
OCAJP 8 certification
Source: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-808
OCAJP 8 - Exam topics
Java Basics
Working With Java Data Types
Using Operators and Decision Constructs
Creating and Using Arrays
Using Loop Constructs
Working with Methods and Encapsulation
Working with Inheritance
Handling Exceptions
Working with Selected classes from the Java API
This table shows
only top-level
topics – for detailed
sub-topics, see
Oracle website
OCPJP 8 certification
Source: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-809
OCPJP 8 - Exam topics
Java Class Design
Advanced Java Class Design
Generics and Collections
Lambda Built-in Functional Interfaces
Java Stream API
Exceptions and Assertions
Use Java SE 8 Date/Time API
Java I/O Fundamentals
Java File I/O (NIO.2)
Java Concurrency
Building Database Applications with JDBC
Localization
This table shows
only top-level
topics – for detailed
sub-topics, see
Oracle website
Exam questions - Format
• It’s a multiple-choice questions exam
• The number of options would be based on the
questions
• Can be from 4 to 7 options (typically four options)
• Many questions will have more than one answer to be
selected!
• The question will clearly tell you how many options you
need to select
What do the questions test?
• Questions intend to test your ability to solve real-world
problems
• Most questions would be programming questions
• Given a program or code segment, predict the behavior
• Also few conceptual questions; 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
What do the questions test?
• Questions will test 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
• You don’t just need to understand the generics feature
in Java but also need to understand problems due to
type-erasure, mixing legacy containers with generic
containers, etc.
What do the questions test?
• 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; examples:
• What does the remove() method of Deque do? (Answer: It
removes the first element from the underlying deque instance).
• What will happen if sleep() method is interrupted? (Answer:
You'll get an InterrputedException)
Sample question
Sample question
Which one of the following options best describes
the behavior of this program?
a) The program prints: in catch -> in finally -> after everything
b) The program prints: after throw -> in catch -> in finally -> after
everything
c) The program prints: in catch -> in finally -> after everything
d) The program prints: in catch -> after everything
e) The program prints: in catch -> in finally ->
f) When compiled, the program results in a compiler error in line
marked with comment in LINE A for divide-by-zero
Sample question: Answer
}  e) The program prints: in catch -> in finally ->
 
}  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 finally statement should be
called, and hence the statement println("in finally -> "); will get
executed.
}  So, the statement println("after everything"); will never get executed.
Sample question
Which one of the following relationship describes the
OO design concept of "composition"?
a) is-a
b) is-a-kind-of
c) has-a
d) is-implemented-in-terms-of
e) composed-as
Answer: c) has-a
Composition is a design concept that refers to has-a relationship.
Sample question
Sample question
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
Sample question: Answer
Answer: 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 NullPointerException or any
other exceptions or a compiler error.
How to prepare?
• Code, code, code!
• The best way to prepare for the exam is to write lots
and lots of small programs and learn from your
mistakes!
• If possible, do some small toy projects in the topics
you’re new or not familiar with.
How to prepare?
• Read, read, read!
• By reading more, you’ll learn more about the
language features and the library. Lots of
resources in the internet.
• Check out our latest book for
OCPJP 8 exam preparation
• http://amzn.com/1484218353
• www.apress.com/
9781484218358 (download
source code here)
• https://ocpjava.wordpress.com/
(more ocpjp 8 resources here)

Contenu connexe

Tendances

Core java concepts
Core java  conceptsCore java  concepts
Core java conceptsRam132
 
Control Statements in Java
Control Statements in JavaControl Statements in Java
Control Statements in JavaNiloy Saha
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Mr. Akaash
 
Enumeration in Java Explained | Java Tutorial | Edureka
Enumeration in Java Explained | Java Tutorial | EdurekaEnumeration in Java Explained | Java Tutorial | Edureka
Enumeration in Java Explained | Java Tutorial | EdurekaEdureka!
 
Static keyword ppt
Static keyword pptStatic keyword ppt
Static keyword pptVinod Kumar
 
Java Data Types
Java Data TypesJava Data Types
Java Data TypesSpotle.ai
 
L14 exception handling
L14 exception handlingL14 exception handling
L14 exception handlingteach4uin
 
Classes, objects in JAVA
Classes, objects in JAVAClasses, objects in JAVA
Classes, objects in JAVAAbhilash Nair
 
Elements of Java Language
Elements of Java Language Elements of Java Language
Elements of Java Language Hitesh-Java
 
Java Presentation
Java PresentationJava Presentation
Java Presentationpm2214
 

Tendances (20)

Core java concepts
Core java  conceptsCore java  concepts
Core java concepts
 
Java exception
Java exception Java exception
Java exception
 
Control Statements in Java
Control Statements in JavaControl Statements in Java
Control Statements in Java
 
String, string builder, string buffer
String, string builder, string bufferString, string builder, string buffer
String, string builder, string buffer
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
 
Arrays in Java
Arrays in Java Arrays in Java
Arrays in Java
 
Enumeration in Java Explained | Java Tutorial | Edureka
Enumeration in Java Explained | Java Tutorial | EdurekaEnumeration in Java Explained | Java Tutorial | Edureka
Enumeration in Java Explained | Java Tutorial | Edureka
 
Static keyword ppt
Static keyword pptStatic keyword ppt
Static keyword ppt
 
Java Data Types
Java Data TypesJava Data Types
Java Data Types
 
L14 exception handling
L14 exception handlingL14 exception handling
L14 exception handling
 
Classes, objects in JAVA
Classes, objects in JAVAClasses, objects in JAVA
Classes, objects in JAVA
 
Operators in java
Operators in javaOperators in java
Operators in java
 
Control flow statements in java
Control flow statements in javaControl flow statements in java
Control flow statements in java
 
Java & advanced java
Java & advanced javaJava & advanced java
Java & advanced java
 
Java tutorial PPT
Java tutorial PPTJava tutorial PPT
Java tutorial PPT
 
Java
JavaJava
Java
 
Elements of Java Language
Elements of Java Language Elements of Java Language
Elements of Java Language
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
 
History of java'
History of java'History of java'
History of java'
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 

En vedette

OCP Java (OCPJP) 8 Exam Quick Reference Card
OCP Java (OCPJP) 8 Exam Quick Reference CardOCP Java (OCPJP) 8 Exam Quick Reference Card
OCP Java (OCPJP) 8 Exam Quick Reference CardHari kiran G
 
Functional Thinking - Programming with Lambdas in Java 8
Functional Thinking - Programming with Lambdas in Java 8Functional Thinking - Programming with Lambdas in Java 8
Functional Thinking - Programming with Lambdas in Java 8Ganesh Samarthyam
 
New Features in JDK 8
New Features in JDK 8New Features in JDK 8
New Features in JDK 8Martin Toshev
 
Java 8 presentation
Java 8 presentationJava 8 presentation
Java 8 presentationVan Huong
 
55 New Features in Java SE 8
55 New Features in Java SE 855 New Features in Java SE 8
55 New Features in Java SE 8Simon Ritter
 
Java 8 - Features Overview
Java 8 - Features OverviewJava 8 - Features Overview
Java 8 - Features OverviewSergii Stets
 
Supercharged java 8 : with cyclops-react
Supercharged java 8 : with cyclops-reactSupercharged java 8 : with cyclops-react
Supercharged java 8 : with cyclops-reactJohn McClean
 

En vedette (8)

OCP Java (OCPJP) 8 Exam Quick Reference Card
OCP Java (OCPJP) 8 Exam Quick Reference CardOCP Java (OCPJP) 8 Exam Quick Reference Card
OCP Java (OCPJP) 8 Exam Quick Reference Card
 
Sailing with Java 8 Streams
Sailing with Java 8 StreamsSailing with Java 8 Streams
Sailing with Java 8 Streams
 
Functional Thinking - Programming with Lambdas in Java 8
Functional Thinking - Programming with Lambdas in Java 8Functional Thinking - Programming with Lambdas in Java 8
Functional Thinking - Programming with Lambdas in Java 8
 
New Features in JDK 8
New Features in JDK 8New Features in JDK 8
New Features in JDK 8
 
Java 8 presentation
Java 8 presentationJava 8 presentation
Java 8 presentation
 
55 New Features in Java SE 8
55 New Features in Java SE 855 New Features in Java SE 8
55 New Features in Java SE 8
 
Java 8 - Features Overview
Java 8 - Features OverviewJava 8 - Features Overview
Java 8 - Features Overview
 
Supercharged java 8 : with cyclops-react
Supercharged java 8 : with cyclops-reactSupercharged java 8 : with cyclops-react
Supercharged java 8 : with cyclops-react
 

Similaire à Cracking OCA and OCP Java 8 Exams

Sheet1Individual Needs Appointment for Hair StylingEmployee gr.docx
Sheet1Individual Needs Appointment for Hair StylingEmployee gr.docxSheet1Individual Needs Appointment for Hair StylingEmployee gr.docx
Sheet1Individual Needs Appointment for Hair StylingEmployee gr.docxlesleyryder69361
 
Start with passing tests (tdd for bugs) v0.5 (22 sep 2016)
Start with passing tests (tdd for bugs) v0.5 (22 sep 2016)Start with passing tests (tdd for bugs) v0.5 (22 sep 2016)
Start with passing tests (tdd for bugs) v0.5 (22 sep 2016)Dinis Cruz
 
Pega Robotics System Architect (CPRSA) Certification - Tips & Tricks.pdf
Pega Robotics System Architect (CPRSA) Certification - Tips & Tricks.pdfPega Robotics System Architect (CPRSA) Certification - Tips & Tricks.pdf
Pega Robotics System Architect (CPRSA) Certification - Tips & Tricks.pdfMeghna Arora
 
Improving the Quality of Existing Software
Improving the Quality of Existing SoftwareImproving the Quality of Existing Software
Improving the Quality of Existing SoftwareSteven Smith
 
Java developer trainee implementation and import
Java developer trainee implementation and importJava developer trainee implementation and import
Java developer trainee implementation and importiamluqman0403
 
Automated Acceptance Tests & Tool choice
Automated Acceptance Tests & Tool choiceAutomated Acceptance Tests & Tool choice
Automated Acceptance Tests & Tool choicetoddbr
 
Hack in the Box GSEC 2016 - Reverse Engineering Swift Applications
Hack in the Box GSEC 2016 - Reverse Engineering Swift ApplicationsHack in the Box GSEC 2016 - Reverse Engineering Swift Applications
Hack in the Box GSEC 2016 - Reverse Engineering Swift Applicationseightbit
 
Test Coverage: An Art and a Science
Test Coverage: An Art and a ScienceTest Coverage: An Art and a Science
Test Coverage: An Art and a ScienceTeamQualityPro
 
Core Java Certification
Core Java CertificationCore Java Certification
Core Java CertificationVskills
 
Salesforce Development Lifecycle and Deployment Architect | How to Prepare
Salesforce Development Lifecycle and Deployment Architect | How to PrepareSalesforce Development Lifecycle and Deployment Architect | How to Prepare
Salesforce Development Lifecycle and Deployment Architect | How to PrepareAdinaCoyle
 
Certified Core Java Developer
Certified Core Java DeveloperCertified Core Java Developer
Certified Core Java DeveloperNarender Rana
 
A journey to_be_a_software_craftsman
A journey to_be_a_software_craftsmanA journey to_be_a_software_craftsman
A journey to_be_a_software_craftsmanJaehoon Oh
 
Встреча "QA: в каких направлениях может найти себя тестировщик?"
Встреча "QA: в каких направлениях может найти себя тестировщик?"Встреча "QA: в каких направлениях может найти себя тестировщик?"
Встреча "QA: в каких направлениях может найти себя тестировщик?"GoIT
 
Improving the Quality of Existing Software
Improving the Quality of Existing SoftwareImproving the Quality of Existing Software
Improving the Quality of Existing SoftwareSteven Smith
 
Qa mockup interview for automation testing
Qa mockup interview for automation testingQa mockup interview for automation testing
Qa mockup interview for automation testingKadharBashaJ
 
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Parasoft .TEST, Write better C# Code Using  Data Flow Analysis Parasoft .TEST, Write better C# Code Using  Data Flow Analysis
Parasoft .TEST, Write better C# Code Using Data Flow Analysis Engineering Software Lab
 
javabasics_ programming development chapter01
javabasics_ programming development chapter01javabasics_ programming development chapter01
javabasics_ programming development chapter01Udeshg90
 
Code Palousa presentation- "Giving Digital Eyes to your Synthetic Tests"
Code Palousa presentation- "Giving Digital Eyes to your Synthetic Tests"Code Palousa presentation- "Giving Digital Eyes to your Synthetic Tests"
Code Palousa presentation- "Giving Digital Eyes to your Synthetic Tests"Christopher Hamm
 

Similaire à Cracking OCA and OCP Java 8 Exams (20)

Sheet1Individual Needs Appointment for Hair StylingEmployee gr.docx
Sheet1Individual Needs Appointment for Hair StylingEmployee gr.docxSheet1Individual Needs Appointment for Hair StylingEmployee gr.docx
Sheet1Individual Needs Appointment for Hair StylingEmployee gr.docx
 
Start with passing tests (tdd for bugs) v0.5 (22 sep 2016)
Start with passing tests (tdd for bugs) v0.5 (22 sep 2016)Start with passing tests (tdd for bugs) v0.5 (22 sep 2016)
Start with passing tests (tdd for bugs) v0.5 (22 sep 2016)
 
Test
TestTest
Test
 
Pega Robotics System Architect (CPRSA) Certification - Tips & Tricks.pdf
Pega Robotics System Architect (CPRSA) Certification - Tips & Tricks.pdfPega Robotics System Architect (CPRSA) Certification - Tips & Tricks.pdf
Pega Robotics System Architect (CPRSA) Certification - Tips & Tricks.pdf
 
Improving the Quality of Existing Software
Improving the Quality of Existing SoftwareImproving the Quality of Existing Software
Improving the Quality of Existing Software
 
Java developer trainee implementation and import
Java developer trainee implementation and importJava developer trainee implementation and import
Java developer trainee implementation and import
 
Automated Acceptance Tests & Tool choice
Automated Acceptance Tests & Tool choiceAutomated Acceptance Tests & Tool choice
Automated Acceptance Tests & Tool choice
 
Hack in the Box GSEC 2016 - Reverse Engineering Swift Applications
Hack in the Box GSEC 2016 - Reverse Engineering Swift ApplicationsHack in the Box GSEC 2016 - Reverse Engineering Swift Applications
Hack in the Box GSEC 2016 - Reverse Engineering Swift Applications
 
Test Coverage: An Art and a Science
Test Coverage: An Art and a ScienceTest Coverage: An Art and a Science
Test Coverage: An Art and a Science
 
Core Java Certification
Core Java CertificationCore Java Certification
Core Java Certification
 
Salesforce Development Lifecycle and Deployment Architect | How to Prepare
Salesforce Development Lifecycle and Deployment Architect | How to PrepareSalesforce Development Lifecycle and Deployment Architect | How to Prepare
Salesforce Development Lifecycle and Deployment Architect | How to Prepare
 
Debbuging
DebbugingDebbuging
Debbuging
 
Certified Core Java Developer
Certified Core Java DeveloperCertified Core Java Developer
Certified Core Java Developer
 
A journey to_be_a_software_craftsman
A journey to_be_a_software_craftsmanA journey to_be_a_software_craftsman
A journey to_be_a_software_craftsman
 
Встреча "QA: в каких направлениях может найти себя тестировщик?"
Встреча "QA: в каких направлениях может найти себя тестировщик?"Встреча "QA: в каких направлениях может найти себя тестировщик?"
Встреча "QA: в каких направлениях может найти себя тестировщик?"
 
Improving the Quality of Existing Software
Improving the Quality of Existing SoftwareImproving the Quality of Existing Software
Improving the Quality of Existing Software
 
Qa mockup interview for automation testing
Qa mockup interview for automation testingQa mockup interview for automation testing
Qa mockup interview for automation testing
 
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Parasoft .TEST, Write better C# Code Using  Data Flow Analysis Parasoft .TEST, Write better C# Code Using  Data Flow Analysis
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
 
javabasics_ programming development chapter01
javabasics_ programming development chapter01javabasics_ programming development chapter01
javabasics_ programming development chapter01
 
Code Palousa presentation- "Giving Digital Eyes to your Synthetic Tests"
Code Palousa presentation- "Giving Digital Eyes to your Synthetic Tests"Code Palousa presentation- "Giving Digital Eyes to your Synthetic Tests"
Code Palousa presentation- "Giving Digital Eyes to your Synthetic Tests"
 

Plus de Ganesh Samarthyam

Applying Refactoring Tools in Practice
Applying Refactoring Tools in PracticeApplying Refactoring Tools in Practice
Applying Refactoring Tools in PracticeGanesh Samarthyam
 
CFP - 1st Workshop on “AI Meets Blockchain”
CFP - 1st Workshop on “AI Meets Blockchain”CFP - 1st Workshop on “AI Meets Blockchain”
CFP - 1st Workshop on “AI Meets Blockchain”Ganesh Samarthyam
 
Great Coding Skills Aren't Enough
Great Coding Skills Aren't EnoughGreat Coding Skills Aren't Enough
Great Coding Skills Aren't EnoughGanesh Samarthyam
 
College Project - Java Disassembler - Description
College Project - Java Disassembler - DescriptionCollege Project - Java Disassembler - Description
College Project - Java Disassembler - DescriptionGanesh Samarthyam
 
Coding Guidelines - Crafting Clean Code
Coding Guidelines - Crafting Clean CodeCoding Guidelines - Crafting Clean Code
Coding Guidelines - Crafting Clean CodeGanesh Samarthyam
 
Design Patterns - Compiler Case Study - Hands-on Examples
Design Patterns - Compiler Case Study - Hands-on ExamplesDesign Patterns - Compiler Case Study - Hands-on Examples
Design Patterns - Compiler Case Study - Hands-on ExamplesGanesh Samarthyam
 
Bangalore Container Conference 2017 - Brief Presentation
Bangalore Container Conference 2017 - Brief PresentationBangalore Container Conference 2017 - Brief Presentation
Bangalore Container Conference 2017 - Brief PresentationGanesh Samarthyam
 
Bangalore Container Conference 2017 - Poster
Bangalore Container Conference 2017 - PosterBangalore Container Conference 2017 - Poster
Bangalore Container Conference 2017 - PosterGanesh Samarthyam
 
Software Design in Practice (with Java examples)
Software Design in Practice (with Java examples)Software Design in Practice (with Java examples)
Software Design in Practice (with Java examples)Ganesh Samarthyam
 
OO Design and Design Patterns in C++
OO Design and Design Patterns in C++ OO Design and Design Patterns in C++
OO Design and Design Patterns in C++ Ganesh Samarthyam
 
Bangalore Container Conference 2017 - Sponsorship Deck
Bangalore Container Conference 2017 - Sponsorship DeckBangalore Container Conference 2017 - Sponsorship Deck
Bangalore Container Conference 2017 - Sponsorship DeckGanesh Samarthyam
 
Let's Go: Introduction to Google's Go Programming Language
Let's Go: Introduction to Google's Go Programming LanguageLet's Go: Introduction to Google's Go Programming Language
Let's Go: Introduction to Google's Go Programming LanguageGanesh Samarthyam
 
Google's Go Programming Language - Introduction
Google's Go Programming Language - Introduction Google's Go Programming Language - Introduction
Google's Go Programming Language - Introduction Ganesh Samarthyam
 
Java Generics - Quiz Questions
Java Generics - Quiz QuestionsJava Generics - Quiz Questions
Java Generics - Quiz QuestionsGanesh Samarthyam
 
Software Architecture - Quiz Questions
Software Architecture - Quiz QuestionsSoftware Architecture - Quiz Questions
Software Architecture - Quiz QuestionsGanesh Samarthyam
 
Core Java: Best practices and bytecodes quiz
Core Java: Best practices and bytecodes quizCore Java: Best practices and bytecodes quiz
Core Java: Best practices and bytecodes quizGanesh Samarthyam
 

Plus de Ganesh Samarthyam (20)

Wonders of the Sea
Wonders of the SeaWonders of the Sea
Wonders of the Sea
 
Animals - for kids
Animals - for kids Animals - for kids
Animals - for kids
 
Applying Refactoring Tools in Practice
Applying Refactoring Tools in PracticeApplying Refactoring Tools in Practice
Applying Refactoring Tools in Practice
 
CFP - 1st Workshop on “AI Meets Blockchain”
CFP - 1st Workshop on “AI Meets Blockchain”CFP - 1st Workshop on “AI Meets Blockchain”
CFP - 1st Workshop on “AI Meets Blockchain”
 
Great Coding Skills Aren't Enough
Great Coding Skills Aren't EnoughGreat Coding Skills Aren't Enough
Great Coding Skills Aren't Enough
 
College Project - Java Disassembler - Description
College Project - Java Disassembler - DescriptionCollege Project - Java Disassembler - Description
College Project - Java Disassembler - Description
 
Coding Guidelines - Crafting Clean Code
Coding Guidelines - Crafting Clean CodeCoding Guidelines - Crafting Clean Code
Coding Guidelines - Crafting Clean Code
 
Design Patterns - Compiler Case Study - Hands-on Examples
Design Patterns - Compiler Case Study - Hands-on ExamplesDesign Patterns - Compiler Case Study - Hands-on Examples
Design Patterns - Compiler Case Study - Hands-on Examples
 
Bangalore Container Conference 2017 - Brief Presentation
Bangalore Container Conference 2017 - Brief PresentationBangalore Container Conference 2017 - Brief Presentation
Bangalore Container Conference 2017 - Brief Presentation
 
Bangalore Container Conference 2017 - Poster
Bangalore Container Conference 2017 - PosterBangalore Container Conference 2017 - Poster
Bangalore Container Conference 2017 - Poster
 
Software Design in Practice (with Java examples)
Software Design in Practice (with Java examples)Software Design in Practice (with Java examples)
Software Design in Practice (with Java examples)
 
OO Design and Design Patterns in C++
OO Design and Design Patterns in C++ OO Design and Design Patterns in C++
OO Design and Design Patterns in C++
 
Bangalore Container Conference 2017 - Sponsorship Deck
Bangalore Container Conference 2017 - Sponsorship DeckBangalore Container Conference 2017 - Sponsorship Deck
Bangalore Container Conference 2017 - Sponsorship Deck
 
Let's Go: Introduction to Google's Go Programming Language
Let's Go: Introduction to Google's Go Programming LanguageLet's Go: Introduction to Google's Go Programming Language
Let's Go: Introduction to Google's Go Programming Language
 
Google's Go Programming Language - Introduction
Google's Go Programming Language - Introduction Google's Go Programming Language - Introduction
Google's Go Programming Language - Introduction
 
Java Generics - Quiz Questions
Java Generics - Quiz QuestionsJava Generics - Quiz Questions
Java Generics - Quiz Questions
 
Java Generics - by Example
Java Generics - by ExampleJava Generics - by Example
Java Generics - by Example
 
Software Architecture - Quiz Questions
Software Architecture - Quiz QuestionsSoftware Architecture - Quiz Questions
Software Architecture - Quiz Questions
 
Docker by Example - Quiz
Docker by Example - QuizDocker by Example - Quiz
Docker by Example - Quiz
 
Core Java: Best practices and bytecodes quiz
Core Java: Best practices and bytecodes quizCore Java: Best practices and bytecodes quiz
Core Java: Best practices and bytecodes quiz
 

Dernier

Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 
How To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTROHow To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTROmotivationalword821
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalLionel Briand
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Developmentvyaparkranti
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identityteam-WIBU
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odishasmiwainfosol
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfStefano Stabellini
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commercemanigoyal112
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Matt Ray
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringHironori Washizaki
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentationvaddepallysandeep122
 

Dernier (20)

Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 
How To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTROHow To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTRO
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive Goal
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Development
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identity
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdf
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commerce
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their Engineering
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentation
 

Cracking OCA and OCP Java 8 Exams

  • 1. Ganesh S G Hari Kiran Cracking OCA/OCP Java 8 Exams Ganesh S G | Hari Kiran
  • 2. Why Get Certified? • The key to get a job, hike or promotion is to show you deserve it • Certification is a means to show that you’ve relevant knowledge and skills
  • 3. Why Java certification? Source: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
  • 5. Oracle’s certification path Oracle Certified Associate Oracle Certified Professional Oracle Certified Master Advanced levels of skills and knowledge Professional skills and technical expertise to develop enterprise software Fundamental skills, provides strong foundations for further exams
  • 6. How to register? • You can register and pay at the Pearson VUE website • This is our 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)
  • 7. OCAJP 8 certification Source: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-808
  • 8. OCAJP 8 - Exam topics Java Basics Working With Java Data Types Using Operators and Decision Constructs Creating and Using Arrays Using Loop Constructs Working with Methods and Encapsulation Working with Inheritance Handling Exceptions Working with Selected classes from the Java API This table shows only top-level topics – for detailed sub-topics, see Oracle website
  • 9. OCPJP 8 certification Source: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-809
  • 10. OCPJP 8 - Exam topics Java Class Design Advanced Java Class Design Generics and Collections Lambda Built-in Functional Interfaces Java Stream API Exceptions and Assertions Use Java SE 8 Date/Time API Java I/O Fundamentals Java File I/O (NIO.2) Java Concurrency Building Database Applications with JDBC Localization This table shows only top-level topics – for detailed sub-topics, see Oracle website
  • 11. Exam questions - Format • It’s a multiple-choice questions exam • The number of options would be based on the questions • Can be from 4 to 7 options (typically four options) • Many questions will have more than one answer to be selected! • The question will clearly tell you how many options you need to select
  • 12. What do the questions test? • Questions intend to test your ability to solve real-world problems • Most questions would be programming questions • Given a program or code segment, predict the behavior • Also few conceptual questions; 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
  • 13. What do the questions test? • Questions will test 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 • You don’t just need to understand the generics feature in Java but also need to understand problems due to type-erasure, mixing legacy containers with generic containers, etc.
  • 14. What do the questions test? • 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; examples: • What does the remove() method of Deque do? (Answer: It removes the first element from the underlying deque instance). • What will happen if sleep() method is interrupted? (Answer: You'll get an InterrputedException)
  • 16. Sample question Which one of the following options best describes the behavior of this program? a) The program prints: in catch -> in finally -> after everything b) The program prints: after throw -> in catch -> in finally -> after everything c) The program prints: in catch -> in finally -> after everything d) The program prints: in catch -> after everything e) The program prints: in catch -> in finally -> f) When compiled, the program results in a compiler error in line marked with comment in LINE A for divide-by-zero
  • 17. Sample question: Answer }  e) The program prints: in catch -> in finally ->   }  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 finally statement should be called, and hence the statement println("in finally -> "); will get executed. }  So, the statement println("after everything"); will never get executed.
  • 18. Sample question Which one of the following relationship describes the OO design concept of "composition"? a) is-a b) is-a-kind-of c) has-a d) is-implemented-in-terms-of e) composed-as Answer: c) has-a Composition is a design concept that refers to has-a relationship.
  • 20. Sample question 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
  • 21. Sample question: Answer Answer: 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 NullPointerException or any other exceptions or a compiler error.
  • 22. How to prepare? • Code, code, code! • The best way to prepare for the exam is to write lots and lots of small programs and learn from your mistakes! • If possible, do some small toy projects in the topics you’re new or not familiar with.
  • 23. How to prepare? • Read, read, read! • By reading more, you’ll learn more about the language features and the library. Lots of resources in the internet.
  • 24. • Check out our latest book for OCPJP 8 exam preparation • http://amzn.com/1484218353 • www.apress.com/ 9781484218358 (download source code here) • https://ocpjava.wordpress.com/ (more ocpjp 8 resources here)