Like Java, what are the default imports in Scala Language?
Answer Posted / Updesh Kumar
In Scala, there is no concept of a 'package' keyword like in Java. Instead, you can import classes and objects directly into your code using the 'import' keyword. The only implicitly imported class is scala.Predef, which includes basic types (such as Int, String, Boolean), common functions (like println), and Scala's core libraries.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers