Add an example of using Scala's predefined synchronized method
Add a discussion and example on how to compile Scala and Java together