JAVA Basic
文章平均质量分 69
金鱼我在这
这个作者很懒,什么都没留下…
展开
-
Dynamic Binding and Casting for the Extensibility of OOP
We all know that among the facts that make OOP so popular is its ability of Extensibility. So i want to see how does the JAVA program realize its exitensibility and the analysis between them.1.原创 2012-08-21 06:32:00 · 667 阅读 · 0 评论 -
集合类:Collection--List, Set, Map
1.JAVA集合类最常用的集合有List, Set 和 MapList ------------LinkedList ------------ArrayList ------------Vector |-------StackSet------------HashSet原创 2013-03-04 23:33:53 · 835 阅读 · 0 评论 -
Inherented Constructor
每个类都会有自己的构造方法,即使没有写,在实例化时系统也会自动增加无参的的构造方法。那么问题就来了,如果子类继承父类,而每个类中都有不止一个的构造方法,那么系统使用这些构造方法的规则又是什么呢?总体说来有四点:1 子类的构造过程中必须调用父类的构造方法什么是构造方法,首先它是一个方法(I am joking here), 它是一个将class实例化成为一个对象的方法。所以说,任原创 2012-08-17 23:44:18 · 774 阅读 · 0 评论 -
java I/O
1 Node StreamThese streams are all connected to the file or memory directly. 1.2 use FileInputStream/ FileOutputStream to read and write from fileimport java.io.*;public class TestF原创 2012-10-23 04:51:34 · 1336 阅读 · 0 评论 -
TCP & UDP
1 TCP1.1 ServerSocket/** * author: huantaoliu * function: try to use tcp socket programming * time: 09.19.2012 */package com.socket;import java.io.*;import java.net.*;public class TCPS原创 2012-09-20 04:21:34 · 627 阅读 · 0 评论 -
public,private and protected
1. when used to instance variables and mehodsFor example we have the java code below://code1package test;public class TestA { private int i = 0; int def = 0; protected int pr =原创 2012-08-17 14:12:54 · 618 阅读 · 0 评论 -
Object Oriented Programming
1. Main memory analysisWhen Programs executes, the main memory is devided into 4 parts: Code section: store the programsData section: store dataHeap: store the object created by the "new" ke原创 2012-08-08 06:12:09 · 338 阅读 · 0 评论 -
1.java contents
1. 面向对象2.异常处理3. 数组4. 常用类5. 容器6.I/O7. 线程8. 网络9.GUI原创 2012-08-08 04:55:54 · 494 阅读 · 0 评论 -
How to use Thread
1. how to use threadTwo things need to know: Thread class and Runnable interface.We can instanciate a thread class to be a thread, we can also create a normal class and let this class implements R原创 2012-09-08 03:40:44 · 634 阅读 · 0 评论 -
How to Use Iterator
JAVA Iterator 的用法以下是摘的一篇文章 很有收获java.util包中包含了一系列重要的集合类。本文将从分析源码入手,深入研究一个集合类的内部结构,以及遍历集合的迭代模式的源码实现内幕。 下面我们先简单讨论一个根接口Collection,然后分析一个抽象类AbstractList和它的对应Iterator接口,并仔细研究迭代子模式的实现原理。转载 2014-05-02 05:37:43 · 655 阅读 · 0 评论