how to register for an exam using an oracle exam voucher

Up until August 2022, everyone used PearsonVUE to register for the exam. Now, you sign up for an exam differently if you are taking it in English. If you are taking it another language (ex: Chinese or Japanese), you still pay thru PearsonVUE (see blog post on sign up process.)

Don’t worry. The exam is still administered through PearsonVUE.

For English exam takers, buy your voucher

  1. Go to the page to buy an exam (ensure you plan to take the exam within 6 months; vouchers expire)
  2. Scroll down to the box for “Oracle Cloud Infrastructure and Technology Exams”. Click “view details” to confirm your exam is still in the list
  3. Click “Add to cart”. It shows up as “Oracle Technology Exam Subscription” (it’s not a subscription though. You still get one attempt
  4. Sign in/pay

Sign up

Next you receive an email with a link to activate.

I’ve already taken the exam so don’t know how one registers for the exam through PearsonVUE after paying. If anyone does, let me know and I’ll add that to the blog post!

Interesting change in calling methods in Java 17

We have this code in our Java 11 practice exam book. What do you think it prints?

public class Hippo {
    private static void hippo(short num1, short num2) {
    private static void hippo(int... nums) {
    private void hippo(long num1, long num2) {
    private void hippo(int num1, int num2) {
    public static void main(String... args) {
        hippo(1, 5);
    } }

Reasoning it through, we know, it doesn’t print longs or nums because the main() is static and therefore we can’t be calling an instance methods. The answer is varargs because we have ints. This seems nice and reasonable.

I then ran the same code in Java 17 and it doesn’t compile!

% java17 error: non-static method hippo(int,int) cannot be referenced from a static context
hippo(1, 5);
1 error
error: compilation failed

i do agree that hippo(int, int) can’t be called. I was surprised at the behavior where it no longer compiles. If I remove the two instance variables, Java still prints varargs like I was expecting.

Happy Book Birthday! OCP Java 17 Book Released!

Jeanne and I over the moon to announce the release of our new OCP Java 17 Developer Complete Study Guide! This book is the culmination of years of knowledge that we’ve accumulated writing study guides for Java. It is for anyone who wants to expand their knowledge of Java, or who wants to pass Oracle’s new Java SE 17 Developer 1Z0-829 exam and become a Java 17 Oracle Certified Professional.

Lambdas and streams? Covered! Concurrency, JDBC, and NIO.2? Covered! New Java 17 switch expressions, records, sealed classes, pattern matching? Definitely covered! Modules? Ok, we don’t use them much either, but they are covered for the exam! It’s great for those who are familiar with Java, but want to acquire a deeper understanding of the language. Learn features of the language that will help you write better code!

Our Java 17 book is a streamlined version of our previous books, including all of the new material and changes that you need to know for the exam. Previously, we wrote one book for each of the two exams. Starting with Java 17, there’s only one exam, allowing us to cover the material in a much more concise and straight-forward manner. Put simply, it weighs less than our previous Complete Study Guide!

Want to win a free copy? Our home away from home, CodeRanch, will be running a book promotion next week starting on May 10th!