I/O The original byte-oriented library was supplemented with char-oriented, Unicode-based I/O classes. It's rather important to understand the evolution of the I/O library. The File class "FilePath" would have been a better name for the class. I…
http://www.onjava.com/pub/a/onjava/2001/05/30/optimization.htmlComparing the performance of LinkedLists and ArrayLists (and Vectors) (Page last updated May 2001, Added 2001-06-18, Author Jack Shirazi, Publisher OnJava). Tips: ArrayList is faster than…
原文地址:http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/gc01/index.html Overview Purpose This tutorial covers the basics of how Garbage Collection works with the Hotspot JVM. Once you have learned how the garbage collector functions, lear…
Agenda Three Categories Of Exceptions Exceptions Hierarchy try-catch-finally block The try-with-resources User-defined Exceptions The Throws/Throw Keywords Three Categories Of Exceptions There have various of reasons cause different exceptions during…
3.3. Data TypesJava is a strongly typed language(强类型语音). This means that every variable must have a declared type(每个变量都必须声明类型). There are eight primitive types in Java(Java有8种原始类型). Four of them are integer types; two are floatingpoint number types;…
Let’s look more closely at one of the simplest Java programs you can have—one that simply prints a message to console: public class FirstSample { public static void main(String[] args) { System.out.println("We will not use 'Hello, World!'"); } }…
reference:http://examples.javacodegeeks.com/core-java/lang/string/java-string-class-example/ 1. Introduction In this example we are going to discuss about the basic characteristics of Java String Class. String is probably one of the most used types i…
“学前”说明:<Learn Java for Android>这本书内容很多,都是精华,建议大家看英文版的.在这里我不打算一一总结书中的内容,书中每章节后面的exercises都很好,非常有总结性,而且在这些习题后面还有精华的Summary,所以,我就列举下每章exercises的内容(含参考答案)以及个人根据Summary提炼的一些内容(个人觉得比较重要的可能会另外写多点).写Blog的过程,就是我学习&温故知新的过程(一律采用英文哦,顺便学下professional English…