Apr 07, 2011 — 12 comments
Though Java Enum was introduced in Java 5, many programmer are still unaware of it's usefulness. This article, explains different concepts of Enum in form of question answers.
Simple Java program which teaches how to reverse Java program by using arithmetic operator in Java. In order to reverse digit of a number you need to use divide and modulas operator.
Some Java and JSP tips to remove HTML special characters from String. You can do that by using core tag library and expression language in JSP and by using Spring framework API in Core Java.
Both TreeSet and HashSet implements Set interface but they are quite different to each other. In order to use them effectively, knowing difference between TreeSet and HashSet is very important. This article help you on that part.
Main difference between Set and List is that Set does not allow any duplicates and only store unique objects while List allow duplicates. Another difference between Set and List is that Set does not maintain any order while List maintains order on which object is added into List.
Java example of calling any method using Reflection API. java.lang.reflect package has a class called Method which denotes java methods and have overloaded method invoke() which can be used to call actual method.
-XX:UseCompressedOops is a JVM command line option which is provided in 64 bit hotspot JVM. Since size of OOPS is larger in 64 bit JVM which reduces CPU caching. this option reduces size of OOPS and improves CPU Caching with higher JVM heap sizes available in 64 bit JVM.
Builder pattern in Java is used to create objects with lots of mandatory and option value. Since after 4 or 5 arguments constructor started getting ugly, builder pattern solves that problem elegantly.
what is difference between java.exe and javaw.exe. This is one question asked to one of my friend recently, well both javaw and java command comes along with JDK installation and used to run Java program, only difference between Java and javaw command is that former provides console while later does not.
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?