Blog: mkyong (Yong Mook Kim)


390 blogs updated: 16 min. ago
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/adm in/tnsnames.ora P.S Tested with Oracle database 19c with ojdb...
3
13-06-2019 09:01:09 mkyong (Yong Mook Kim) Beginners
JDBC CallableStatement - PostgreSQL Stored Function
A JDBC CallableStatement example to show you how to call a stored function from PostgreSQL database. P.S Tested with PostgreSQL 11 and Java ...
4
11-06-2019 08:15:16 mkyong (Yong Mook Kim) Beginners
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 r...
6
01-06-2019 08:21:16 mkyong (Yong Mook Kim) Beginners
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 pom.xml org.postgresql postgresql...
9
18-05-2019 07:25:03 mkyong (Yong Mook Kim) Beginners
Java - How to change date format in a String
If Java 8, DateTimeFormatter, else SimpleDateFormat to change the date format in a String. 1. DateTimeFormatter (Java 8) Convert the String ...
3
14-05-2019 07:54:41 mkyong (Yong Mook Kim) Beginners
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. Read this Stream JavaDocs Streams have a Base...
7
12-05-2019 16:44:08 mkyong (Yong Mook Kim) Beginners
Java - Add new line in String
Different operating system has a different new line or line separator string: UNIX, Linux or Mac OSX = \n Windows = \r\n NewLineExample.java...
18
12-05-2019 08:36:47 mkyong (Yong Mook Kim) Beginners
Java - Convert File to String
In Java, we have many ways to convert a File to a String. A text file for testing later. c:\\projects\\app.log A B C D E 1. Java 11 Files.re...
0
10-05-2019 14:08:30 mkyong (Yong Mook Kim) Beginners
Java - what is -Xms and -Xmx parameter?
In Java, -Xms set initial Java heap size, while -Xmx set the maximum Java heap size. 1. Some java -Xms -Xmx examples : # Start with 128MB of...
8
10-05-2019 07:59:10 mkyong (Yong Mook Kim) Beginners
FastJson - Convert Java objects to / from JSON
FastJson provides easily APIs to convert Java objects to / from JSON JSON.toJSONString Java objects to JSON JSON.parseObject JSON to Java ob...
6
08-05-2019 14:56:04 mkyong (Yong Mook Kim) Beginners


© Jiri Pinkas | this project on GitHub | related: JavaVids | Maven Central Repository Search | Java školení | Top SQL Blogs | monitored using: sitemonitoring

Top Java Blogs is a Java blog aggregator (with English-written blogs only) focused on Java SE, Java EE, Spring Framework and Hibernate.