Apr 07, 2011 — 12 comments
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.
Java tutorial of quick practical tips to improve performance of Java application which has database in back end. database is main source of slowness and by minimizing database calls, improving query performance by introducing indexes, using preparedStatement you can improve performance of Java application.
Java tutorial on what is assertion in java and why should you use assertion to improve code quality. Also Assertion in java is fairly underused feature but if used carefully can complement both Unit Testing and Exception handling. Since Assertion sits on code its gets more expose than unit testing and can test your function with more real data than one or two test data.
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?