Executing System commands in Java---ref
摘要:One of the nice features of Java language is that it provides you the opportunity to execute native system commands and in this tutorial we will see h...
阅读全文
posted @
2014-05-28 11:58
一天不进步,就是退步
阅读(239)
推荐(0)
Top 10 Questions about Java Exceptions--reference
摘要:reference from:http://www.programcreek.com/2013/10/top-10-questions-about-java-exceptions/This article summarizes the top 10 frequently asked question...
阅读全文
posted @
2014-05-21 17:46
一天不进步,就是退步
阅读(392)
推荐(0)
ArrayList的实现原理--转
摘要:1. ArrayList概述: ArrayList是List接口的可变数组的实现。实现了所有可选列表操作,并允许包括 null 在内的所有元素。除了实现 List 接口外,此类还提供一些方法来操作内部用来存储列表的数组的大小。 每个ArrayList实例都有一个容量,该容量是指用来存储列表元素的数组...
阅读全文
posted @
2014-05-19 17:21
一天不进步,就是退步
阅读(235)
推荐(0)
Top 10 Mistakes Java Developers Make--reference
摘要:This list summarizes the top 10 mistakes that Java developers frequently make.#1. Convert Array to ArrayListTo convert an array to anArrayList, develo...
阅读全文
posted @
2014-05-19 16:33
一天不进步,就是退步
阅读(343)
推荐(0)
Top 10 questions about Java Collections--reference
摘要:reference from:http://www.programcreek.com/2013/09/top-10-questions-for-java-collections/The following are the most popular questions of Java collecti...
阅读全文
posted @
2014-05-19 16:31
一天不进步,就是退步
阅读(305)
推荐(0)
Java命令行运行参数说明大全--转
摘要:来源:http://xinklabi.iteye.com/blog/837435Java在运行已编译完成的类时,是通过java虚拟机来装载和执行的,java虚拟机通过操作系统命令JAVA_HOME\bin\java –option 来启动,-option为虚拟机参数,JAVA_HOME为JDK安装路...
阅读全文
posted @
2014-05-15 17:31
一天不进步,就是退步
阅读(850)
推荐(0)
Debugging to Understand Finalizer--reference
摘要:This post is covering one of the Java built-in concepts calledFinalizer. This concept is actually both well-hidden and well-known, depending whether y...
阅读全文
posted @
2014-05-14 11:02
一天不进步,就是退步
阅读(831)
推荐(0)
Why String is immutable in Java ?--reference
摘要:Stringis an immutable class in Java. An immutable class is simply a class whose instances cannot be modified. All information in an instance is initia...
阅读全文
posted @
2014-05-14 10:43
一天不进步,就是退步
阅读(385)
推荐(0)
JAVA获取CLASSPATH路径--转
摘要:ClassLoader提供了两个方法用于从装载的类路径中取得资源:publicURLgetResource(Stringname);publicInputStreamgetResourceAsStream(Stringname);这里name是资源的类路径,它是相对与“/”根路径下的位置。getRe...
阅读全文
posted @
2014-04-30 17:36
一天不进步,就是退步
阅读(659)
推荐(0)
使用apache common-io 监控文件变化--转
摘要:package common.io;import org.apache.commons.io.filefilter.FileFilterUtils;import org.apache.commons.io.monitor.FileAlterationListener;import org.apach...
阅读全文
posted @
2014-04-25 18:58
一天不进步,就是退步
阅读(7090)
推荐(1)
How to Tune Java Garbage Collection--reference
摘要:reference:http://architects.dzone.com/articles/how-tune-java-garbageThePerformance Zoneis supported byNew RelicandAppDynamics. Both are leaders in the...
阅读全文
posted @
2014-04-18 17:59
一天不进步,就是退步
阅读(372)
推荐(0)
Regular Expressions --正则表达式官方教程
摘要:http://docs.oracle.com/javase/tutorial/essential/regex/index.htmlThis lesson explains how to use thejava.util.regexAPI for pattern matching with regul...
阅读全文
posted @
2014-04-17 18:05
一天不进步,就是退步
阅读(3134)
推荐(0)
java 并发官方教程
摘要:http://docs.oracle.com/javase/tutorial/essential/concurrency/index.htmlConcurrencyComputer users take it for granted that their systems can do more th...
阅读全文
posted @
2014-04-17 11:44
一天不进步,就是退步
阅读(1818)
推荐(0)
Understanding transient variables in Java and how they are practically used in HashMap---reference
摘要:What is the significance of the transient keyword inJava? If you know the answer, good! you are a person who uses this a lot or a person who has read ...
阅读全文
posted @
2014-04-15 09:11
一天不进步,就是退步
阅读(326)
推荐(0)
Java ZIP File Example---refernce
摘要:In this tutorial we are going to see how to ZIP a file in Java. ZIP is an archive file format that enables data compression and it is mostly used on files and folders. A ZIP file may contain one or more compressed files or folders. Many compression algorithms have been used by several ZIP implementa
阅读全文
posted @
2014-04-13 11:33
一天不进步,就是退步
阅读(1091)
推荐(0)
JVMInternals--reference
摘要:This article explains the internal architecture of the Java Virtual Machine (JVM). The following diagram show the key internal components of a typical JVM that conforms toThe Java Virtual Machine Specification Java SE 7 Edition.The components shown on this diagram are each explained below in two sec
阅读全文
posted @
2014-04-11 09:15
一天不进步,就是退步
阅读(523)
推荐(0)
java code to byte code--partone--reference
摘要:Understanding how Java code is compiled into byte code and executed on a Java Virtual Machine (JVM) is critical because it helps you understand what is happening as your program executes. This understanding not only ensures that language features make logical sense but also that it is possible to un
阅读全文
posted @
2014-04-11 09:02
一天不进步,就是退步
阅读(640)
推荐(0)
How to Check if an Array Contains a Value in Java Efficiently?---reference
摘要:How to check if an array (unsorted) contains a certain value? This is a very useful and frequently used operation in Java. It is also a top voted question on Stack Overflow. As shown in top voted answers, checking if an array contains a certain value can be done in several different ways, but the ti
阅读全文
posted @
2014-04-09 08:39
一天不进步,就是退步
阅读(469)
推荐(0)
对request.getSession(false)的理解(附程序员常疏忽的一个漏洞)--转
摘要:出处:http://blog.csdn.net/xxd851116/archive/2009/06/25/4296866.aspx【前面的话】在网上经常看到有人对request.getSession(false)提出疑问,我第一次也很迷惑,看了一下J2EE1.3 API,看一下官网是怎么解释的。【官方解释】 getSessionpublicHttpSessiongetSession(booleancreate)Returns the currentHttpSessionassociated with this request or, if if there is no current sess
阅读全文
posted @
2014-03-11 16:58
一天不进步,就是退步
阅读(453)
推荐(0)
Lambdas in Java 8--reference
摘要:Part 1reference:http://jaxenter.com/lambdas-in-java-8-part-1-49700.htmlGet to know lambda expressions in Java 8.Few things excite a community of software developers more than a new release of their chosen programming language or platform. Java developers are no exception. In fact, we’re probably eve
阅读全文
posted @
2014-03-11 09:03
一天不进步,就是退步
阅读(1512)
推荐(0)