![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java/corejava
文章平均质量分 75
iteye_19040
这个作者很懒,什么都没留下…
展开
-
删除文件夹和统计文件夹大小
[code="java"] //删除文件夹 public static void fileDelete(File file) throws Exception { if (!file.exists()) { log.debug("文件或目录不存在!"); return; } i...2009-05-15 11:08:56 · 126 阅读 · 0 评论 -
【翻译】java verbose options
原文链接: http://extreme-java.blogspot.com/2011/01/java-verbose-options-for-running.html There are basically three sub parameters with the javac verbose parameter: verbose参数有三个基本的子参数: -verbose:clas...原创 2011-02-28 09:53:02 · 160 阅读 · 0 评论 -
【翻译】Why String is immutable in Java
原文地址: http://javarevisited.blogspot.com/2010/10/why-string-is-immutable-in-java.html This is one of the most popular interview question on String in Java which starts with discussion of What is imm...原创 2011-02-28 11:27:10 · 128 阅读 · 0 评论 -
【翻译】Abstract Classes Have Constructors
1) In Java , we have default constructors provided for classes by the compiler (in case one is not declared). 2) The abstract classes can't be instantiated by using the new operator because they do...原创 2011-02-28 12:59:24 · 400 阅读 · 0 评论 -
【翻译】Hello World with Java Architecture for XML Binding - JAXB
原文地址: http://kushanxp.blogspot.com/2011/03/hello-world-with-java-architecture-for.html What is JAXB? JAXB (Java Architecture for XML Binding) facilitates you to read or write to a XML file. sinc...原创 2011-03-03 13:24:37 · 113 阅读 · 0 评论 -
【翻译】Hello World with Apache Commons Digester
原文地址: http://kushanxp.blogspot.com/2011/02/hello-world-with-apache-commons.html This example will shows how to get started with Apache Commons Digester. What is Apache Commons Digester? Sim...原创 2011-03-03 13:46:51 · 86 阅读 · 0 评论 -
【翻译】10 Interview questions on Singleton Pattern in Java
原文地址: http://www.dzone.com/links/r/top_10_interview_questions_on_singleton_pattern_i.html Singleton pattern is one of the most common patterns available and it’s also used heavily in Java. This is ...原创 2011-03-14 10:49:04 · 134 阅读 · 0 评论 -
【翻译】Serialization / Marshalling / Deflating in JAVA
原文地址: http://www.dzone.com/links/r/serialization_marshalling_deflating_in_java.html Writing Java Objects or keeping the state of Objects into DataBase or Files (In Binary Format) is known as Serial...原创 2011-03-14 10:52:29 · 115 阅读 · 0 评论 -
用java发送http请求
一种方式是用开源组件httpclient 另一种是用jdk自带的类,下面只说下自带类的用法: [code="java"] package test; import java.io.IOException; import java.io.OutputStreamWriter; import java.net.HttpURLConnection; import java.net.UR...原创 2011-04-22 09:54:33 · 96 阅读 · 0 评论