2016 java9-how-make-qus
-
Upload
jeanne-boyarsky -
Category
Technology
-
view
180 -
download
0
Transcript of 2016 java9-how-make-qus
![Page 1: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/1.jpg)
How to Study for Java 9 Certification and Save on Certification Fees
slideshare.net/boyarskyTwitter @jeanneboyarskyBlog: http://www.selikoff.netModerator on forums at: http://www.coderanch.com
Jeanne Boyarsky5/4/16
![Page 2: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/2.jpg)
Pros of Beta Exams
• Only $50 (vs $245)• Get same cert at end• Sometimes clues in one question for another
@jeanneboyarsky
![Page 3: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/3.jpg)
Cons of Beta Exams
• Longer exam• More questions• Errors in questions• Don’t get result for many weeks• Lack of study materials
@jeanneboyarsky
![Page 4: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/4.jpg)
How did you do?
• Can’t know• Depends which questions chosen• Grading errors on OCP 8 beta
@jeanneboyarsky
![Page 5: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/5.jpg)
Study Plan
• List topics to study• Learn them• Identify tricky points• Optional: Make your own questions
@jeanneboyarsky
![Page 6: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/6.jpg)
Example: Java 8 Stream Pipeline
What are some tricky points about terminal operators?
• Must be exactly one terminal operation
• Returns non-stream
• No terminal operation means stream not run
• Once run terminal operation, stream invalid
@jeanneboyarsky
![Page 7: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/7.jpg)
Writing sample questions
• Code• Question• Answers• Change one thing
@jeanneboyarsky
![Page 8: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/8.jpg)
Example: Java 8 Constructor References
What are some tricky points about constructor references?
• Syntax String::new
• Pass when need Supplier
• Doesn’t resolve to the type
@jeanneboyarsky
![Page 9: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/9.jpg)
Another sample question
• Could we do a fill in the blank question?• What could we alter in the question?• What could be tricky?
@jeanneboyarsky
![Page 10: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/10.jpg)
Cert Timeline Timeline
Event DateMarch 2014 Java 8 ReleaseAugust 2014 Java 8 OCA BetaApril 2015 Java 8 OCP BetaMarch 2017 Java 9 Release
![Page 11: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/11.jpg)
What’s in Java 9
• Jigsaw• JShell (Nashorn was originally on OCP
beta)• Process API• GC changes• etc
@jeanneboyarsky
![Page 12: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/12.jpg)
Let’s use JShell
• Oracle had Nashorn on the OCP 8 beta• JShell is successor• Appears to have same limitations
• No up arrow support• No tab autocomplete• Needs more automatic imports
@jeanneboyarsky
![Page 13: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/13.jpg)
Exercise: Reading for details
List as many key/tricky points as we can in http://tinyurl.com/javasig-java9shell
• http://blog.takipi.com/java-9-early-access-a-hands-on-session-with-jshell-the-java-repl/
• http://openjdk.java.net/jeps/222
![Page 14: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/14.jpg)
Exercise: Picking important points
![Page 15: 2016 java9-how-make-qus](https://reader030.fdocuments.us/reader030/viewer/2022021423/58a188831a28abca5a8b62df/html5/thumbnails/15.jpg)
Exercise: Making questions