In short, objects are translated into single objects, and one instance is stored in a static destination field. Therefore, the objects will be reinitialized, and you will need serialization to restore the same data for mutable objects.
Scala ( Odersky .), 31, , - .
, :
object App {
def main(args: Array[String]) {
println("Hello, world!")
}
}
App$, singleton. , singleton , public static final App$ MODULE$ = new App$();, . javap App$ - , jad . , Scala App, Java. , App.main scala App, , , java App .