The default Scala packages are Java.lang, Java.io, and PreDef, each of which has varying functionalities.
- Java.lang: Fundamentally, Java.lang is a package containing classes compatible with the Java programming language.
- Java.io: You can import Scala classes for input-output resources with Java.io.
- PreDef: The PreDef package implements type aliases for collections such as Map, Set, and List that are specifically immutable.