Skip to content

Instantly share code, notes, and snippets.

@stantonk
Created November 20, 2014 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stantonk/fe5a94bc0011a71aadbd to your computer and use it in GitHub Desktop.
Save stantonk/fe5a94bc0011a71aadbd to your computer and use it in GitHub Desktop.
// Main.scala
class C {
var x = 0
}
object Main extends App {
val c = new C()
println("c = " + c.x)
}
// Disassembled C.class
$ javap C
Compiled from "Main.scala"
public class C extends java.lang.Object{
public int x();
public void x_$eq(int);
public C();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment