Simple tutorial about How to prevent multiple submission of HTML form over HTTP post method using JavaScript and HTML. This article also explains various issues faced by simply disabling submit button and there solution.
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.
Java »
Basics — 9 months ago
— reviewed, not listed
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.
Java »
Basics — 9 months ago
— reviewed, not listed
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.
Java »
Basics — 10 months ago
— reviewed, not listed
-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.
Java »
Basics — 10 months ago
— reviewed, not listed
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.
There are two ways to measure execution time of a method or code block in Java. System.nanoTime() and System.currentTimeInMillis() which can be used to calculate difference between two time interval which can than be used to measure execution time of any method or code block.
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?