摘要: 1. 对于类的成员变量,不管程序有没有显式的进行初始化,Java虚拟机都会先自动给它初始化为默认值。 1. 对于类的成员变量,不管程序有没有显式的进行初始化,Java虚拟机都会先自动给它初始化为默认值。 默认值如下: Boolean false Char '\u0000'(null) byte (b 阅读全文
posted @ 2016-07-31 09:26 娃哈哈哈 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1 //read a file and print it on the screen 2 import java.io.*; 3 4 public class MyPrintStreamTest2{ 5 public static void main(String[] args) { 6 String filename = args[0]; // firsttime to s... 阅读全文
posted @ 2016-07-31 07:50 娃哈哈哈 阅读(116) 评论(0) 推荐(0) 编辑