0 votes
in Scala Constructs by
What are different packages in Scala?

1 Answer

0 votes
by

The default Scala packages are Java.lang, Java.io, and PreDef, each of which has varying functionalities.  

  1. Java.lang: Fundamentally, Java.lang is a package containing classes compatible with the Java programming language.
  2. Java.io: You can import Scala classes for input-output resources with Java.io.
  3. PreDef: The PreDef package implements type aliases for collections such as Map, Set, and List that are specifically immutable.
...