1.

What are different packages in Scala?

Answer»

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.


Discussion

No Comment Found