摘要: 1.关于Spring的理解 (1)Spring 首先是一个容器。为我们提供了一个“模板、方法、模式”; (2)目的:通过配置文件(.XML)来关联对象。实现低耦合; (3)Spring两个重要的核心组成: IoC:控制反转:控制权由对象本身转换成Spring容器;由容器根据.XML文件去动态创建某个 阅读全文
posted @ 2016-08-20 11:32 The_PopCore 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 28. 选项中哪一行代码可以替换题目中//add code here而不产生编译错误?() public abstract class MyClass { public int constInt = 5; //add code here public void method() { } } Apub 阅读全文
posted @ 2016-02-22 19:35 The_PopCore 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 在java中,不允许程序员选择值传递还是地址传递各个参数,基本类型总是按值传递。对于对象来说,是将对象的引用也就是副本传递给了方法,在方法中只有对对象进行修改才能影响该对象的值,操作对象的引用时是无法影响对象。 现在说说数组:如果将单个基本类型数组的元素传递给方法,并在方法中对 其进行修改,则在被调 阅读全文
posted @ 2016-02-22 19:03 The_PopCore 阅读(28019) 评论(0) 推荐(1) 编辑
摘要: class HelloA { public HelloA() { System.out.println("HelloA"); } { System.out.println("I'm A class"); } static { System.out.println("static A"); } } p 阅读全文
posted @ 2016-02-22 17:55 The_PopCore 阅读(719) 评论(0) 推荐(0) 编辑
摘要: 1.start() public static void main(String[] args) { // TODO 自动生成的方法存根 Thread t = new Thread() { public void run() { pong(); } }; t.start(); System.out. 阅读全文
posted @ 2016-02-22 11:57 The_PopCore 阅读(1707) 评论(0) 推荐(1) 编辑
摘要: “==”比较的是地址,牢记。1。对象。integer 是对象 Integer i1 = 20; Integer i2 = 20 ; System.out.println(i1 == i2); // true Integer i3 = 200; Integer i4 = 200 ; System.ou 阅读全文
posted @ 2016-02-22 11:04 The_PopCore 阅读(4223) 评论(0) 推荐(1) 编辑