Apr 07, 2011 — 5 comments
Java system library has two date classes one is java.sql.Date and other is java.util.Date , why do you have two date classes in java? because sql date mapped with ANSI SQL date object, it also highlight the main difference that sql date can not represent time details
Simple Java program which demonstrate How to convert local time to any time zone in Java. this time its GMT .
Java program to connect to Oracle database from Java program. You can also connect to Oracle by using type 4 driver, just add jdbc_6g.jar and you are ready
Apache commons beanutils is a very useful open source framework which provides several utility class and method to manipulate java beans. one of them is PropertyUtils which allows to change property of object at runtime by passing string property name using reflection.
factorial program in Java is natural example of recursion. because factorial algorithm itself multiply number to one less than it until it get zero, you can represent this algorithm easily using recursion in java
transient keyword is used in serialization process and if you mark any variable as transient then they will not be serialized. this article also discuss some important points about transient variable and how to deal with them. transient is different than static or final variable.
One of very famous interview questions is difference between vector and arraylist and this article focus on this with various points e.g. synchronization, safety, robustness, iteration and compatibility. no doubt Vector and ArrayList are one of those most useful classes in Java API and correct understanding of these two help you to write better code.
Both Application Server and web server are part of J2EE Stack and used to host Java applications. An important difference between application Server and web server is that former supports EJB while later doesn't support EJB. example of various applications servers are Glassfish, Webshhere WAS, Weblogic etc
This is tutorial about JavaFX 2 ListView. The ListView class represents a scrollable list of items. Below is a example how our ListView will look in the end of this tutorial. In this tutorial, I am going to create JavaFX 2 ListView and implement OnMouseClicked Event Handler.
ConcurrentHashMap is indeed best choice in case of multithreaded environment if numbers of reader is much greater than number of writer to avoid contention and to increase throughput and performance but deciding between SynchronizedHashMap and ConcurrentHashMap in Java is still requires understanding of use cases and actual environment.
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials. Mind lending a hand?