Student stu=new Student();代码执行时候引用stu存储在?

Student stu=new Student();代码执行时候引用stu存储在?

A.堆

B.栈

C.方法区

D.本地方法栈

正确答案是B