<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT公司面试手册 &#187; Java</title>
	<atom:link href="http://www.mianwww.com/html/category/it-interview/java/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mianwww.com</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 11:48:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>String与StringBuff 的比较</title>
		<link>http://www.mianwww.com/html/2012/02/13201.html</link>
		<comments>http://www.mianwww.com/html/2012/02/13201.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:53:46 +0000</pubDate>
		<dc:creator>jim.jin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.mianwww.com/?p=13201</guid>
		<description><![CDATA[1）String的联合+方法与StringBuff的append方法的区别： String的+运算符在进行字符串运算时，首先将当前的字符串对象转换为StringBuff 类型，调用其append方法，最后再将生成的StringBuff 对象通过其toString 方法转换为String类型的字符串，所以其效率要低。 但是在可读性上，还是String的连接运算符要高。 2）StringBuff是线程安全的 String是线程是飞安全的 3）String是不可以修改的字符串对象，而StringBuff是可以修改的。 public static boolean fileCopy(String srcStr, String destStr) { File srcFile = null; File destFile = null; Reader reader = null; Writer writer = null; boolean flag = false; try { srcFile = new File(srcStr); if (!srcFile.exists()) { System.out.println(&#8220;源文件不存在&#8221;); System.exit(0); } else { reader = new FileReader(srcFile); [...]]]></description>
		<wfw:commentRss>http://www.mianwww.com/html/2012/02/13201.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java中对文件进行操作的类都有哪些？</title>
		<link>http://www.mianwww.com/html/2012/02/13197.html</link>
		<comments>http://www.mianwww.com/html/2012/02/13197.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:33:37 +0000</pubDate>
		<dc:creator>jim.jin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.mianwww.com/?p=13197</guid>
		<description><![CDATA[File类： 对硬盘上的文件和目录进行操作的类。 构造函数： 1） File(String pathname) Creates a new File instance by converting the given pathname string into an abstract pathname. 2）File(File parent, String child) Creates a new File instance from a parent abstract pathname and a child pathname string. 3）File(String parent, String child) Creates a new File instance from a parent pathname string and [...]]]></description>
		<wfw:commentRss>http://www.mianwww.com/html/2012/02/13197.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HashTable 与HashMap的区别</title>
		<link>http://www.mianwww.com/html/2012/02/13195.html</link>
		<comments>http://www.mianwww.com/html/2012/02/13195.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:32:47 +0000</pubDate>
		<dc:creator>jim.jin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.mianwww.com/?p=13195</guid>
		<description><![CDATA[1) HashTable 与HashMap实现的是不同的接口 HashTable 是Dictionary的子类 HashMap 是Map接口的子类 2）HashTable的键值都不允许为空，HashMap的键值只允许其中一个为空。 3）HashTable 是多线程安全的 HashMap 是非线程安全的 Hashtable&#60;Citizen,String&#62; table = new Hashtable&#60;Citizen,String&#62;(); table.put(new Citizen(&#8220;6323&#8243;),&#8221;1&#8243;); table.put(new Citizen(&#8220;4321&#8243;),&#8221;2&#8243;); table.put(new Citizen(&#8220;5678&#8243;),&#8221;3&#8243;); Enumeration enu = table.keys(); while(enu.hasMoreElements()){ Citizen key = (Citizen)enu.nextElement(); String value = (String)table.get(key); System.out.println(key + &#8220;&#8212;&#8212;&#8212;-&#8221; + value); } HashMap&#60;Citizen,String&#62; table1= new HashMap &#60;Citizen,String&#62;(); table1.put(null,&#8221;2&#8243;); table1.put(null,&#8221;1&#8243;); table1.put(new Citizen(&#8220;5678&#8243;),&#8221;3&#8243;); Iterator iter = table.keySet().iterator(); [...]]]></description>
		<wfw:commentRss>http://www.mianwww.com/html/2012/02/13195.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set的作用及用法是什么？</title>
		<link>http://www.mianwww.com/html/2012/02/13193.html</link>
		<comments>http://www.mianwww.com/html/2012/02/13193.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:32:16 +0000</pubDate>
		<dc:creator>jim.jin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.mianwww.com/?p=13193</guid>
		<description><![CDATA[Set用于存取无序无重复的数据，主要实现类有： &#160; TreeSet类 &#160; HashSet类 &#160; HashSet ：采用散列码的形式来管理加载数据 Hashcode 方法：每一个Object对象都有一个hashcode散列码，hashcode值是指对 象的首地址值。 两个对象相等的条件包含包含两个是： 1）两个对象的属性值相同：  equals()方法 2）两个对象属性的hashcode码相同。 覆盖hashcode()方法： 只有在用散列码的方式管理的数据中进行覆盖。 &#160; &#160; TreeSet ： 可以排序，必须实现Comparable接口 自定义的类可以比较大小的前提：实现Comparable接口。]]></description>
		<wfw:commentRss>http://www.mianwww.com/html/2012/02/13193.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>遍历 Vector 的方法</title>
		<link>http://www.mianwww.com/html/2012/02/13191.html</link>
		<comments>http://www.mianwww.com/html/2012/02/13191.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:31:24 +0000</pubDate>
		<dc:creator>jim.jin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.mianwww.com/?p=13191</guid>
		<description><![CDATA[遍历 Vector 的两种方法： Iterator iter = v.iterator(); while(iter.hasNext()){ StudentVo value = (StudentVo)iter.next(); System.out.println(value); } &#160; Enumeration enu = v.elements(); while(enu.hasMoreElements()){ StudentVo value = (StudentVo)enu.nextElement(); System.out.println(value); }]]></description>
		<wfw:commentRss>http://www.mianwww.com/html/2012/02/13191.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vector 与ArrayList 的区别</title>
		<link>http://www.mianwww.com/html/2012/02/13189.html</link>
		<comments>http://www.mianwww.com/html/2012/02/13189.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:30:58 +0000</pubDate>
		<dc:creator>jim.jin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.mianwww.com/?p=13189</guid>
		<description><![CDATA[Vector 中的所有方法都是线程安全的（即多个多个线程操作同一个Vector对象时是 线程安全的），但只有一个线程操作时考虑到同步控制会耗费系统资源所以效率低。 ArrayList 中的所有方法都是线程非同步的，但有多个线程操作时是不安全的。]]></description>
		<wfw:commentRss>http://www.mianwww.com/html/2012/02/13189.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>什么是设计模式？介绍一下你了解的设计模式有哪些？</title>
		<link>http://www.mianwww.com/html/2012/02/13187.html</link>
		<comments>http://www.mianwww.com/html/2012/02/13187.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:30:13 +0000</pubDate>
		<dc:creator>jim.jin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[程序员]]></category>

		<guid isPermaLink="false">http://www.mianwww.com/?p=13187</guid>
		<description><![CDATA[设计模式：在大量的实践中总结、理论化之后优选的代码结构、编程风格，解决问题的方案和途径。 组成部分： 模式名称：名词或名词短语，用来描述模式的问题、解决方案和效果 问题：描述何时使用该模式。 解决方案：描述模式的组成，各自的职责，相互关系 效果（consequence）：描述使用模式的效果及使用这个模式时应该权衡的问题。    单例设计模式： 背景：某个类的实例对象在内存中只有一个。 实现： 1、  构造函数似有。 2、  由本类提供一个静态的返回值是本类类型的获得本类对象的方法。 3、  定义一个静态的本类类型的成员变量来保存本类类型的对象。  /**  * 单例模式  * 1、构造函数私有  * 2、由本类提供一个或得本类对象的静态方法  * 3、定义一个保存实例对象的静态成员变量  * @author Administrator  *  */ public class SingletonPattern {   private double random;   private static SingletonPattern sp;   private SingletonPattern(){     random = Math.random();   }   public double [...]]]></description>
		<wfw:commentRss>http://www.mianwww.com/html/2012/02/13187.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java接口与抽象类的区别</title>
		<link>http://www.mianwww.com/html/2012/02/13185.html</link>
		<comments>http://www.mianwww.com/html/2012/02/13185.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:29:08 +0000</pubDate>
		<dc:creator>jim.jin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.mianwww.com/?p=13185</guid>
		<description><![CDATA[1、  接口中不能有方法的实现和变量的声明，抽象类中可以 2、  接口中的方法缺省方法的属性public abstract，而抽象类不能缺省。 3、  接口支持多重继承，抽象类值支持单一继承。 4、  实现&#38;继承的区别： 继承：子类与父类在本质上是属于同一类事物。 实现：使得类具有某种功能，也可以通过其他的途径解决。]]></description>
		<wfw:commentRss>http://www.mianwww.com/html/2012/02/13185.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>介绍一下Java的静态成员</title>
		<link>http://www.mianwww.com/html/2012/02/13183.html</link>
		<comments>http://www.mianwww.com/html/2012/02/13183.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:28:38 +0000</pubDate>
		<dc:creator>jim.jin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.mianwww.com/?p=13183</guid>
		<description><![CDATA[Static：修饰属性和方法的 Static修饰的属性： 1、被类的各个对象所共享。不和对象绑定在一起。 2、在类被加载的时候就存在于内存中，被称为类变量。 3、static和权限修饰符不能修饰局部变量。 Static修饰的方法： 1、  可以调用类中的静态成员，但不能直接调用本类中的非静态成员。因为，类的非静态方法只能以对象的形式被调用。 2、  不能以任何形式在静态方法中使用this 和super。因为静态方法在被调用前this 和super所引用的对象根本没有产生。 3、  Static不能修饰构造函数。 用static修饰的成员可以通过类名来调用。]]></description>
		<wfw:commentRss>http://www.mianwww.com/html/2012/02/13183.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>==与equals的区别是什么？</title>
		<link>http://www.mianwww.com/html/2012/02/13180.html</link>
		<comments>http://www.mianwww.com/html/2012/02/13180.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:26:58 +0000</pubDate>
		<dc:creator>jim.jin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.mianwww.com/?p=13180</guid>
		<description><![CDATA[*对于栈中的数据： 用“==”比 基本数据类型数据：比较具体的值。 引用数据类型数据：比较两个引用变量是否指向同一个对象。 *对于堆中的对象： equals（）方法 比较堆中的两个对象的属性值是否相等。]]></description>
		<wfw:commentRss>http://www.mianwww.com/html/2012/02/13180.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

