It is a hot news that Oracle and Sun announced that Oracle to buy Sun on 2009-04-20.
http://www.sun.com/aboutsun/media/presskits/2009-0420/index.jsp
Tuesday, April 21, 2009
Oracle to buy Sun Microsystems
Tuesday, April 7, 2009
Java Object Clone Sample Code
To create a deep copy of Java object you should implement "Cloneable" interface and override clone() method. Here is the sample code:
class MyClass implements Cloneable
{
public Object clone()
{
try
{
return super.clone();
}
catch(CloneNotSupportedException ex)
{
return null;
}
}
}
Thursday, March 19, 2009
Castor - Open Source data binding framework for Java
You can use Castor java library to process WSDL files.
First you neet to download Castor library from http://www.castor.org/.
WSDLFactory wsdlFactory = WSDLFactory.newInstance();
WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
Definition definition = wsdlReader.readWSDL("C:/Temp/order.wsdl");
if (definition == null)
{
System.err.println("definition element is null");
System.exit(1);
}
Map servicesMap = definition.getServices();
....
..
Tuesday, March 18, 2008
Performance enhancements in Java 5
Followings have been listed on Sun website as improved program execution speed in Java 5
1. Garbage Collection
2. New Class – StringBuilder (Unsynchronized StringBuffer)
3. Java 2D enhancements (in BufferedImage objects)
4. Image I/O enhancements (in JPEG image read, write)