Apr 07, 2011 — 5 comments
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.
Comprehensive Synchronization tutorial in Java. synchronized keyword is used to provide mutual exclusion and visibility guarantee in mufti-threaded environment. In order to use synchronized keyword properly you need to remember which object your code is locking etc.
This article is about how to do logging in Java, how to use log4j and some practical logging tips in Java. this is more a collection of experience, best practices and provides a developers view on java logging. Its critical to use correct logging level, correct format and know which information to log.
Java tutorial on how to find memory usage in java with example. step by step guide to get free memory, max memory and total memory from JVM by using various utility method provided in Runtime class. accuracy of those method are also discussed in order to avoid misinterpretation of result.
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?