Emiel de Munck

Greenhorn
+ Follow
since Sep 21, 2015
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Emiel de Munck

Rob Spoor wrote:You could try submitting a bug. I think you need to login first though.

I've just checked the categories you should use, and here's the list:
Type: Bug
Product / Category: Java Platform Standard Edition (JDK/JRE)
Subcategory: JDK/JRE documentation, API, tutorials (doc)



Ah cool, thank you for the details. I just submitted it
8 years ago
Ah I see thanks for clarifying.
I think it is rather unsettling that there are still mistakes in these tutorials by Oracle, since Java 8 is already available for a while. I regarded them as the most official source and use it as exam preparation material.
8 years ago
Hi there,

Over here is some information on the Instant class https://docs.oracle.com/javase/tutorial/datetime/iso/instant.html

One of the examples given is:
Instant oneHourLater = Instant.now().plusHours(1);

However, when I try this code it does not compile. I do however see options in my IDE (Netbeans) for plusMillis, plusNanos, plusSeconds and plus, but not for plusHours.

Even when I try
java.time.Instant oneHourLater = java.time.Instant.now().plusHours(1);
to be absolutely sure of the right class used, it does not compile.

error: cannot find symbol
java.time.Instant oneHourLater = java.time.Instant.now().plusHours(1);
symbol: method plusHours(int)
location: class Instant
1 error

When I look into the code of Instant.java (once again in package java.time) I cannot find plusHours.

I must be missing something obvious here or the official Oracle tutorial is just... wrong...?
8 years ago
Ok thank you, I will definitely look into those resources.
Hi there,

Recently I got my OCA 8 certificate (yay).
For the OCA exam I had a book dedicated at training for the exam.
This helped a lot in understanding the topics and also to train me in answering (trick) questions.
I'm planning do go for OCPJP 8 now. I know there is a lot of information to find on Java 8 in general, but I couldn't find a specific book yet that's aimed at exam training for OCPJP 8.

Ideal would be something like "Oracle Certified Professional Java SE 8 Programmer II Study Guide: Exam 1Z0-809", but I read it is not released until at least December.
My company requires me to get the certification before the end of this year, though.

I wonder, is there equally good material available to prepare for this exam? Or might it be better to wait for this book to come out (and ask my company if its OK to take the exam early 2016 :P)?

Cheers,

Emiel