[HD Pg 0, Sec. 12.1.0 - using-the-math-class]

Oracle Certified Foundations Associate Java Certification Questions and Discussion
1Z0-811

Moderator: admin

Post Reply
Katzor
Posts: 1
Joined: Sun Dec 24, 2023 2:09 pm
Contact:

[HD Pg 0, Sec. 12.1.0 - using-the-math-class]

Post by Katzor »

Book: OCFA Java Foundations Exam Fundamentals 1Z0-811: Study guide for Oracle Certified Foundations Associate, Java Certification
Build: 1st Jan 2021 Build 1.1
Observe that, unlike with the Math.random() method, you need to first create an instance of the Random class and then call an appropriate getXXX method to get a random int, long, float, or double value.
Besides the nor args getInt method, it also has getInt(int bound) method ...
From the context it is rather clear what is meant but I could not find any getXXX methods in the Java API docs of 1.8 and 11. in my opinion get should be replaced with next here.

Great book, I hope one day I will get all the way to OCP Java certification. I am grateful you provide us with this material for little money! :thumbup:

admin
Site Admin
Posts: 10270
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD Pg 0, Sec. 12.1.0 - using-the-math-class]

Post by admin »

You are right. It should be nextXXX methods.

All the best for your preparation.
If you like our products and services, please help us by posting your review here.

sabrina23
Posts: 1
Joined: Thu Nov 07, 2024 3:55 am
Contact:

Re: [HD Pg 0, Sec. 12.1.0 - using-the-math-class]

Post by sabrina23 »

In your study experience with this book, have you encountered any other places where method names or details differ from the official Java API documentation? If so, how did you handle those differences in understanding?

admin
Site Admin
Posts: 10270
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD Pg 0, Sec. 12.1.0 - using-the-math-class]

Post by admin »

Don't worry, you will not be surprised in the exam if you go through the book.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests