What is the difference between a scala script and scala application? Please provide an example
The book I am reading says that a script must always end in a result e
Well, I always thought this is a Scala script:
$ cat script #!/usr/bin/scala !# println("Hello, World!")
Running with simple:
$ ./script
An application on the other hand has to be compiled to .class and executed explicitly using java runtime.
.class
java