STAT 102 Midterm: STAT 102 UPenn Midterm2Fall 2001
Document Summary
My signature below certi es that i have complied with the university of pennsylvania"s code of. 1: facts about ocaml and java (15 points) For each part, circle true or false. a. The . equals method in java is roughly similar to ocaml"s = operator. b. The == operator in both ocaml and java tests whether two compound values have identical structure. c. In java, there is a class that is a subtype of any other class. e. f. In java, an interface can extend zero, one, or several other interfaces. In java, a class can extend zero, one, or several other classes. g. In the java asm, large data structures such as object values are stored in the stack, not the heap. h. In the ocaml asm, bindings of variables to values in the stack are immutable, while in java they are mutable. i.