/*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;
* 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;