scala code is supposed to be compiled into java bytecode, so scala code can be run on a java virtual machine (jvm). scala has language interoperability with java—scala code can be used in java programs, and the other way around.