[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: 10124
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.

thomasfrank
Posts: 2
Joined: Wed Jun 26, 2024 4:46 am
Contact:

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

Post by thomasfrank »

I bought the OCFA Java Foundations book based on your suggestion, and I'm glad I did. It's a fantastic resource for studying the 1Z0-811 exam. The content is well-organized and easy to understand,Buildnow GG even for beginners.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests