-
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: 1016
-
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: 1293
-
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: 1037
-
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: 1912
-
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: 1843
-
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: 1524
-
Java Events 2019
Some Java Conferences and Events 2019.
Date: 2019-08-11 View: 1105
-
Java 8 Convert LocalDateTime to Timestamp
In Java, we can use Timestamp.valueOf(LocalDateTime) to convert a LocalDateTime into a Timestamp.
Date: 2019-08-11 View: 1230
-
Java 8 Stream The peek() is not working with count()?
Many examples are using the .count() as the terminal operation for .peek(), for example:
Date: 2019-08-11 View: 1412
-
Java 8 Convert ZonedDateTime to Timestamp
Java example to convert java.time.ZonedDateTime to java.sql.Timestamp and vice verse.
Date: 2019-08-11 View: 1792
-
java.sql.SQLException: operation not allowed: Ordinal binding and Named binding cannot be combined!
Ordinal binding or index binding:
Date: 2019-08-11 View: 2206
-
Java Prime Numbers examples
The following Java examples will print a list of all the prime numbers up to 1,000:
Date: 2019-08-11 View: 1297
-
Java 8 Parallel Streams Examples
Few Java 8 examples to execute streams in parallel.
Date: 2019-08-11 View: 1089
-
Java Convert Integer to Long
In Java, we can use Long.valueOf() to convert an Integer to a Long
Date: 2019-08-11 View: 1087
-
java.sql.SQLException: The server time zone value xx time is unrecognized
Making a JDBC connection to the MySQL server with the latest mysql-connector-java:8.0.16 and hits the following SQLException:
Date: 2019-08-11 View: 1269