How to learn about using scala.None from Java using javap?
In a previous question, Accessing scala.None from Java , it seems that people had used javap to figure out how to access scala.None from Java. I would like to know how they did that. FYI, the answer is: scala.Option$.MODULE$.apply(null); which can be shorted to: scala.Option.apply(null); Given this program ( OptionTest.scala ): object OptionTest extends App { val x = scala.None val y = scala.Some("asdf") } I ran javap on it like this: javap -s -c -l -private OptionTest This is a portion of the javap output: public static final scala.None$ x(); Signature: ()Lscala/None$; Code: 0: getstatic #11;