您的位置:首页 > 编程语言 > Java开发

test2.1

2015-09-16 09:54 441 查看
/*target:output the default number of integer and characters;

* methods:use out and print;

 */

public class Test1 {
public static void main(String[] args) {

class Demo
{int x;char y;}
Demo d=new Demo();
System.out.println(d.x+"---"+d.y);
}

}

//the output means default int=0;default char=null;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Java