I want to share my experience taking and retaking the exam for almost 2 years, and also if you are thinking of taking the exam. You always have to get resources such as mock exams, books with updated information and also when you are practicing you should use the compiler, until you get tired of typing javac program.java and java program over and over again!
My first year, I didn't know the right way to start I just started watching youtube videos and I thought that what I learned in college was enough to pass the Java certification exam, but obviously when I took the exam I failed and I was very disappointed to fail and then I bought a course on Udemy I took like 6 months to take it and watch the videos again and I did it again and I failed again
I got very frustrated and searched for tips on Youtube and found a guy who was talking about his experience and mentioned Oracle Certified Professional OCP Java SE 17 Developer's Study Guide: Exam 1Z0-829, and mentioned that it was really useful and also recommended buying mock exams to practice. Then I bought it and when I started reading I saw in the book "please visit coderanch", I immediately type it in Google and I found a lot of tips that help to pass the certification exam and there I confirmed that most people passed the exam reading and practicing using resources not trying to study or pretending that you know, big mistake!
I am very grateful for such useful information and resources created for those of us who are preparing for this important certification
Now I am looking to get the 1Z0-900 certification, if you have some tips or trainings to be prepared, please write any suggestions