Sunday, August 21, 2011

What the difference in cunstruct String instance with and without new keyword

There are two different approach of how to create a new String instance. The first one uses keyword new, the second one without new.

For example:

String a = "Iron Man";
String b = new String("Andre");

There is a slight difference between these two approaches, and it is related to String pool memory. In the example above the first variable "a" will be created in string pool memory, and second "b" will be created in "non-pool" memory. Read more about this in linked post below:

Inheriting Java: Chapter 32: The String Class

About memory leak with substring() in class String

I've found a good post about memory leak that may happen during use of method substring() in class String.

Friday, July 22, 2011

If you want to buy ticket to USA and etc

Here is the one of the best site if you gona to buy tickets for airplane:

expedia.com

Tool for Drawing the diagrams

One of the best tool for drawing a diagrams is MagicDraw UML, here is the link.

How to list WS logs

/var/log/xyratex/wsgi_access.log
less ws... (-- log SOAP requests)

Wednesday, July 20, 2011

How to Skype with Privatbank in Ukraine

In order to Skype with PrivatBank.ua operator click icon of envelope (see screenshot) and then icon of Skype. That's it. Today (July 2011) I tried to skype with privatbank this way and I was frustrated, because click on this link opened for me window for "Download Skype", but not for making a call... oops...

Tuesday, July 19, 2011

Sunday, July 17, 2011

How to add JARs file to Eclipse

To be brief on it: if you want to add JAR file to Eclipse project do it trough adding it into Properties/Build Path/Libraries/Add JARs:

 If you want to know the different ways to add JARs file to your project in Eclipse check this link.

Friday, July 1, 2011

RESTful Web Services

What is RESTful Web Services?

Shortly it is REpresentational State Transfer (REST).

More about REST read this article.