Ìs it possible to compile file that contains both scala and java code?
I’m doing online course and was given java source files, which I need to extend. Do I have to use only Java in already existing files?
Ìs it possible to compile file that contains both scala and java code? I’m
Share
You cannot have both Java and Scala in one file. After all it’s either
.javaor.scala.However you are free to:
…as long as they are in different files.