Validations are a huge part of any software development. We need to validate that the data being entered from the UI is correct i.e of correct type or we are not leaving a notNull/notEmpty fields to be blank. There are so many ways to fulfill these requirements and we can have UI level validations or persistence level validations.
public class TempDirExample
public static void main(String args)
// This is the property name for accessing OS temporary directory or
String property = "java.io.tmpdir";
// Get the temporary directory and print it.
String tempDir = System.getProperty(property);
System.out.println("OS current temporary directory is " + tempDir);
links for 2011-01-2526 01 2011