Delete a record in a table using JDBC Statement API

Program to delete a record in a table using JDBC’s java.sql.Statement API.

Output:

In Database:                

Update table data using JDBC Statement API

Program to update table data using JDBC’s java.sql.Statement API.

Output:

In Database:                

Insert rows into a table using JDBC Statement API

Program to insert rows into a table using JDBC’s java.sql.Statement API.

Output:

In Database:                  

Create table using JDBC Statement API

Program to create a table in oracle database using JDBC’s java.sql.Statement API.

 Output:

Log-in to SQL-PLUS with user name/password and see whether the EMPLOYEE table is created or not.                 Note:From JDBC 4.0 (from Java6) onwards we no need to load data base driver jar using class.forName(); Just add […]

Hello world Example in Spring 4

In this tutorial we will learn how to create a simple hello world example in Spring 4.1. Technologies used in this article : 1. Spring 4.1.0 2. Maven 1.4 3. Eclipse 4.2 4. JDK 1.6 5. Spring IDE 1. Add Spring 4.1 Dependencies to the project Please add the Spring 4.1 dependencies like as in […]

How to Read/Parse CSV file in Java

In this tutorial we can learn how to parse the content from CSV file in Java. There some other APIs also there which used to parse the content from CSV file but here we are using plain Java. Have a look into the below sample program.

  Here is the CSV file contents:   […]

How To Sort Hashmap By Value in Java

In real-time, you may be getting hashmap result from the server and you want to display the hashmap values in sorted order Or you may need to display the values in a drop down but in a sorted order. For example, from server we are getting different types of pizza’s with the item as key […]

JAXB Tutorial in Java

In this tutorial we will learn what is the significance of  JAXB in Java. JAXB  stands for Java Architecture for XML Binding, which is using to convert java object to/from XML Marshalling: JAXB provides support to convert java object to XML. Unmarshalling: JAXB provides support to convert XML to a JAVA Object. Let’s run a small […]

Tutorial – How To Install Ant in Windows.

In this tutorial we will learn how to install Apache Ant 1.9.4 in windows 7 , Please have a look in to below steps. Techs and Tools Used in this tutorial : JDK 1.6 Ant 1.9.4 Windows 7 1. Install the Java (here I am using Java 1.6) and set the Windows environment variable ‘JAVA_HOME ‘ like […]

Tutorial – How To Install Maven in Windows

In this tutorial we will learn how to install Apache Maven 3.2.3 in windows 7 , Please have a look in to below steps. Techs and Tools Used in this tutorial : JDK 1.6 Maven 3.2.3 Windows 7   1. Install the Java (here I am using Java 1.6) and set the Windows environment variable ‘JAVA_HOME ‘ […]