© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
J. FriesenLearn Java Fundamentalshttps://doi.org/10.1007/979-8-8688-0351-2_14

14. System

Jeff Friesen1  
(1)
Dauphin, MB, Canada
 

The java.lang.System class provides access to system-level capabilities such as array copying and virtual machine shutdown. This chapter introduces you to seven capabilities.

Note

System is an example of a utility class because all of its methods and fields are declared static.

Array Copying

Chapter 5 introduced you to arrays. You learned that arrays have fixed sizes and also learned that to resize an array, you have to create a new array of the desired size, then copy the elements from the current array to the new array, and finally ...

Get Learn Java Fundamentals: A Primer for Java Development and Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.