摘要:
public class Demo { public static void main(String[] args) { int row=8; int colum=8; int[][] a=new int[row][colum]; for(int i=0;i<row;i++) { for(int j=0;j<=i;j++) { if(j==0||i==j... 阅读全文
摘要:
所以从表面理解,st就是Student的对象,但是实际上st指向对象的地址。 Student st=new Student(); new Student是在堆内存中创建一个对象 st则是在栈内存中被声明,然指向堆内存的对象,所以st并不是真正的对象,只是可以间接地充当对象的名称 当同一个类创建不同的 阅读全文