[12/13] Java Foundations Certification: Java API Classes

Share on facebook
Share on twitter
Share on linkedin
Build a strong foundation of knowledge in Java programming! Prepare for your “Java Foundations” official exam by learning some of the most commonly used Java API Classes.

In the current lesson, we take a closer look at the most frequently used Java API classes. Svetlin Nakov will explain all about the Math class, how to generate random numbers, the need of BigInteger and BigDecimal in programming, and how to work with date and time in Java. We will also look at two of the main Java classesArrays and Formatter.

The Math class contains methods for performing basic numeric operations, such as round, min, max, abs, ceil, etc.. The Arrays class contains various methods which facilitate array manipulation. String.format() allows us to return the formatted string by given locale, format, and arguments.

In this lesson you will find many helpful examples and exercises, so make sure to practice what you’ve learned! That’s the only way to grasp the concept at hand.

BigInteger and BigDecimal are used for handling large and small numbers with great precision. BigInteger will throw an exception when the result is out of range. BigDecimal gives the user complete control over the rounding behavior. 

Importing a single package allows us to work with the date and time API.
In this lesson you will find many helpful examples and exercises, so make sure to practice what you’ve learned! 

As always, we advise you to pause the video right before the solving part of each problem and try to do the exercises on your own first. Then, if you have difficulties, just watch the provided solutions in the video. If you still have questions, we’re always here to help! 

*The exercise descriptions are to be found in the PDF document at the end of this post.

If you are new to programming, make sure to watch the Free Full Java Basics course first, as it is a necessary prerequisite to this one. It explains the topics in a lot more detail, as this video aims to revise them and get to more complex topics after that.
This course is also perfect for people who have some background in programming with a different language and would like to pick up on Java.

Lesson Topics

This video covers the following topics:

1. The Judge System

  • The Exception class 
  • Types of exceptions and their hierarchy

2. The Math Class

3. The Random Class

4. The Arrays Class

  • Methods of the Arrays Class 
  • Example of Sorting an Array 

5. String Formatter

6. BigInteger and BigDecimal

7. Java Date and Time

Remember that coding is a skill, which should be practiced. To learn to code, you should write code, every day, for a long time. Watching tutorials is not enough. You should code! Now it’s your turn. Do your exercises!

Register now and take your free resources right away! You will get access to the 55+ fully automated exercises which will sharpen your coding skills. You will become a member of the SoftUni Global Community and we will provide you the opportunity to communicate with other students and mentors and get help for FREE.

Leave a Comment

Scroll to Top

Sign in

Don’t have an account? Register with us to join the community.