新网创想网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
CODE: public class A {
String s = "Hello"; public A(String s) { System.out.println("s = " + s); System.out.println("1 -> this.s = " + this.s); this.s = s; System.out.println("2 -> this.s = " + this.s); } public static void main(String[] args) { new A("HelloWorld!"); } } 网页题目:浅谈Java中this的使用(转) 标题网址:http://wjwzjz.com/article/jjjhdp.html |