-
Java How to generate a random String
Few Java examples to show you how to generate a random alphanumeric String, with a fixed length.
Date: 2019-08-11 View: 1389
-
Java password generator example
A Java example to generate a strong, secure random password containing [a-zA-Z0-9!@#$%&*()_+-=[]?] characters, with a length of 15.
Date: 2019-08-11 View: 1278
-
FastJson Convert Java objects to / from JSON
FastJson provides easily APIs to convert Java objects to / from JSON
Date: 2019-08-11 View: 1511
-
Java How to save a String to a File
In Java, there are many ways to write a String to a File.
Date: 2019-08-11 View: 1395
-
Java Convert File to String
In Java, we have many ways to convert a File to a String.
Date: 2019-08-11 View: 1246
-
Java what is -Xms and -Xmx parameter?
In Java, -Xms set initial Java heap size, while -Xmx set the maximum Java heap size.
Date: 2019-08-11 View: 1321
-
Java 8 Should we close the Stream after use?
Only Streams whose source are an IO channel like Files.lines(Path, Charset) need to be closed.
Date: 2019-08-11 View: 1269
-
Java Add new line in String
Different operating system has a different new line or line separator string:
Date: 2019-08-11 View: 1323
-
Java How to change date format in a String
If Java 8, DateTimeFormatter, else SimpleDateFormat to change the date format in a String.
Date: 2019-08-11 View: 1211
-
JDBC How to print all table names from a database?
A JDBC example to connect to a PostgreSQL, and print out all the tables from the default database postgres
Date: 2019-08-11 View: 1469
-
JDBC Class.forName() is no longer required
Since Java 1.6, JDBC 4.0 API, it provides a new feature to discover java.sql.Driver automatically, it means the Class.forName is no longer required. Just put any JDBC 4.x driver in the project classpath, and Java is able to detect it.
Date: 2019-08-11 View: 1197
-
JDBC CallableStatement PostgreSQL Stored Function
A JDBC CallableStatement example to show you how to call a stored function from PostgreSQL database.
Date: 2019-08-11 View: 2163
-
How to Uninstall Oracle Database 19c on Windows
To uninstall Oracle database on Windows, we have to delete the all the related Ora* registry keys, files and folders manually.
Date: 2019-08-11 View: 2220
-
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
This is caused by the requested SID doesn’t exist in {ORACLE_HOME}/network/admin/tnsnames.ora
Date: 2019-08-11 View: 1746
-
Java Events 2019
Some Java Conferences and Events 2019.
Date: 2019-08-11 View: 1302