How To Use Java Code To Set File Permission

java.io.File provide several methods to get or set file permissions in java code. But the drawback of java.io.File ‘s methods is that it can only separate file permission into two groups which is owner or all users. So java 7 introduce java.nio.file.attribute.PosixFilePermission which provide methods that can let you define file permission more accurately for different …

How To Use Java Code To Set File Permission Read More »

JDBC CallableStatement Stored Procedure Output Parameters Example

This example will show you how to use java.sql.CallableStatement to get output data from a stored procedure. This example will use Microsoft SQL Server, the java code for other databases is the same. If you do not know how to create stored procedures in Microsoft SQL Server, you can read the article JDBC CallableStatement Stored …

JDBC CallableStatement Stored Procedure Output Parameters Example Read More »