The Java HotSpot: A Generic and Concurrent Object Pool
In this post we will take a look at how we can create an object pool in Java. In recent years, the performance of the JVM has multiplied manifold that object pooling for better performance has been...
View ArticleThe Java HotSpot: Generic method to sort a Map according to Values
We all have at least once used classes implementing java.util.Map. Some of the most prominent ones areHashMap TreeMapLinkedHashMap Of these, HashMap and LinkedHashMap do not sort the entries. TreeMap...
View Article10 Interview Questions on Java Generics for Programmer and Developers
Generic interview questions in Java interviews are getting more and more common with Java 5 around there for considerable time and many application either moving to Java 5 and almost all new java...
View ArticleJava Generics Tutorial: How Generics in Java works with Example
I have read many articles on generics in java some of them are quite good and detailed but I still felt that those are either too much technical or exhaustively detailed, so I thought to write a simple...
View ArticleGeneric Text Comparison Tool with LCS Approach - Java Code Geeks
Detecting and showing differences of two texts (especially having hundreds or thousands of lines) is a common problem. Using pure java.lang.String class methods may be a solution, but the most...
View ArticleJAVAbyNATARAJ sir: Display Current Date using GenericServlet
We have a class named Date from java.util.Date package. We can use the Date class methods to display the date. We are going to display this date in the webpage using servlets. Here we are using init...
View ArticleJAVAbyNATARAJ sir: How to Iterate Generic type of ArrayList
Generics in JavaGenerics were introduced in Java 1.5 to define abstract types for the variables of by enclosing a comma-separated list of their names within angle brackets after the name of the class...
View ArticleWelcome to semika's blog: Java sorting function with Generics and Reflection
Fed up with writing sorting function every time??. This post will be a great relief for you.I am going to explain, How to write a java class which can be used to sort any type of java object collection...
View Article
More Pages to Explore .....