[Author: lzhang] [Tue, 2014-09-23, 11:18] [1680 views]
The difference between abstact class and interface:
Abstract class: Abstract class should be inherited to be used with the key word "extends" and relation is "is-a". A class can only inherits one abstract class. The fields in abstract class has no restriction. The methods in abstract class can be a ... see full article
[Author: ming.lian] [Tue, 2014-09-02, 11:09] [1492 views]
Here is the scenario:
If you have 50 private property data with 50 getters in your class, and you do not know which getter you need to call at the run time. For example: getName(), getSex(), getAddress(), etc. You may need to call some of those 50 but not all, to fill your data fields, then you have ... see full article
[Author: lzhang] [Wed, 2014-04-09, 15:21] [2461 views]
1 Java connection to MySQL
To start, let us work on a simple java application(no web) connected to MySQL database(other database will be similar).
MySQL http://dev.mysql.com/down ... see full article
[Author: ming.lian] [Mon, 2013-10-28, 20:16] [2317 views]
This blog was from java dzone.
In Java the Singleton pattern will ensure that there is only one instance of a class is created in the Java Virtual Machine. It is used to provide global point of access to the object. In terms of practical use Singleton patterns are used in logging, caches, thread poo ... see full article
[Author: Dingyu] [Sun, 2013-09-22, 21:29] [1577 views]
1. Bitwise and Bit Shift Operators
// Operator & performs a bitwise AND operation.
// Operator | performs a bitwise inclusive OR operation.
// Operator ^ performs a bitwise exclusive OR operation.
// Operator ~ is an unary bitwise complement operator.
// Operator << is the signed left shift operator ... see full article